views:

744

answers:

3

Hi,

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 date picker. Is there some property or something similar to make this available for any integer number input field?

Thanks

A: 

As far as I know, there's no built-in widget for doing this. You'd have to write your own. Here's the source for DatePicker - you can use it for inspiration.

Erich Douglass
Thanks. I feared it would be that way. :)
alaak
A: 

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

jfcole