I've been researching this for hours with no progress.
I need an easy user interface to enter daily weight.
I'm trying to avoid an EditText
interface for it lacking in the user experience.
My FitnessPal, for example, has exactly what I am looking for.
MyFitnessPal's weight input
The Android number picked seems hard wired for integers. If it allows for double variables, I can't figure out how to make it work.
Any help is appreciated.
Asked
Active
Viewed 829 times
1

seekingStillness
- 4,833
- 5
- 38
- 68
-
http://stackoverflow.com/questions/13645927/android-numberpicker-for-floating-point-numbers – DoronK Jul 24 '16 at 18:36
-
Yeah, I've seen this question/answer. It doesn't address my question. Firstly I can't pre program every number from 80.0 lbs to 350.5 lbs and enter to an array. The links aren't much help either. Thanks though. – seekingStillness Jul 24 '16 at 19:26
1 Answers
1
I ended up using two separate number pickers (integer), aligning them side by side, and placing a TextView "period" between them -- to give the appearance of a double variable. Then in the java, I converted them to doubles, performed some math and was able to get my number. Maybe not the most efficient, but it worked.

seekingStillness
- 4,833
- 5
- 38
- 68