0

i need to add a picker in my activity that allows to insert a double value, with minimum 0,2 and step 0,01. Something like this:

enter image description here

I tried to search on Android documentation and i found these:

enter image description here

Is it possible to suit Android picker to my purpose? Does exist anything better?

smartmouse
  • 11,808
  • 26
  • 77
  • 154
  • http://stackoverflow.com/questions/8227073/using-numberpicker-widget-with-strings – fweigl Feb 23 '15 at 19:41
  • Can i use NumberPicker with double values? Or should i use 2 NumberPicker widgets? If i should, how to put the decimal point? – smartmouse Feb 23 '15 at 19:48

1 Answers1

1

This post might be of help: Getting float/double from NumberPicker

Although I think the best route is to just use a Spinner, see this post: Strange double-to-string conversion

Community
  • 1
  • 1
Daniel Nugent
  • 40,780
  • 13
  • 103
  • 126