Disable keyboard input on Android TimePicker
android
Solution
try to use:
myTimePicker.setDescendantFocusability(TimePicker.FOCUS_BLOCK_DESCENDANTS);
to disable focus on the text views of the internal NumberPickers
Problem
I'm developing and Android app using the 1.6 SDK. I'm using a `TimePicker` and I don't want the soft keyboard to come up when you click on the digits in the `TimePicker`. I only want the `TimePicker` to be changed using the plus and minus buttons. I've tried using `android:focusable="false"` and `android:focusableInTouchMode="false"` hoping those would do it, but they didn't seem to do anything. Is there a way to do this?