views:

54

answers:

1

I have copied Android's NumberPicker widget to my own application, but I'm having one problem...

When someone manually clicks the EditText and changes it via the keyboard, the selection is not saved. Is there some listener that I can implement to check and see if the user manually changes the EditText to set it as current? Or something?

A: 

You can try to set a TextWatcher to your EditText to do the same or do not allow an user to enter a value manually there...

Or keep an OK button there and take the values out from the EditText only when an user clicks the OK button

Did you try this sample ?

http://www.quietlycoding.com/?p=5

Rahul
Yes, that's exactly how I figured out how to copy over NumberPicker. And sadly, I would like a user to be able to manually input their score.
Fran Fitzpatrick
Did you try setting a text watcher to ur EditText..? Check this post http://stackoverflow.com/questions/3665470/measure-length-of-edittext-string-dynamically-in-android/3666012#3666012
Rahul