Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Number picker dialog [closed]

Tags:

android

widget

enter image description here

Does anyone know where can I find a tutorial or example on how to achive this kind of number picker dialog on android? I googled everything but only managed to find examples where you have to create your own buttons with custom images etc. Can this be done in simple way?

All I could find was this: http://www.quietlycoding.com/?p=5 but it doesn't quite help me.

like image 750
Rohit Malish Avatar asked Aug 03 '12 17:08

Rohit Malish


1 Answers

If you are targeting API level 11 or higher, you can use NumberPicker

If you are targeting earlier API levels, you will have to write your own NumberPicker or use one from a third party library.

Here is a nice video tutorial.

Good luck!

like image 52
Zambotron Avatar answered Sep 24 '22 13:09

Zambotron