Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android number input with plus and minus sign

I am developing in Android and I would like an input field for numbers, where the user can select the correct number using the plus sign at the top and the minus sign at the bottom of the input field. I know this works for DatePicker. Is there some property or something similar to make this available for any integer number input field?

Thanks

like image 850
alaak Avatar asked May 07 '10 08:05

alaak


2 Answers

NumberPicker is now available in Android SDK. (Added in API level 11)

http://developer.android.com/reference/android/widget/NumberPicker.html

like image 92
Atul Goyal Avatar answered Oct 15 '22 08:10

Atul Goyal


I've just released some code that does just what you want. Check out my custom control, NumberPicker, which can be seen here: http://www.technologichron.net/?p=42

like image 39
jfcole Avatar answered Oct 15 '22 09:10

jfcole