I am looking for a number picking like those used in the date controls on an Android and found this question:
hour/minute picker for android countdown timer
Following that example I can get the controls I want – Yay! The problem is I don’t see how to get the value the user selects? Normally I would set an on change listener and be happy, but how do I create a class that implements the internal interface com.android.internal.widget.NumberPicker$OnChangedListener? Is there another way to get the current selection?
Check the source code… Do you need a listener?
getCurrentshould give you the value. With reflection it would be something like:EDIT: You can implement an interface that you got through reflection with
java.lang.reflect.Proxy, see this question here.