Disable keyboard input on Android TimePicker

try to use:

myTimePicker.setDescendantFocusability(TimePicker.FOCUS_BLOCK_DESCENDANTS);

to disable focus on the text views of the internal NumberPickers

This also works for DatePicker, just use DatePicker.FOCUS_BLOCK_DESCENDANTS instead. –  swanson Feb 20 ‘12 at 17:31
 
http://*.com/questions/2391216/disable-keyboard-input-on-android-timepicker

Disable keyboard input on Android TimePicker,布布扣,bubuko.com

Disable keyboard input on Android TimePicker

上一篇:android点滴之ContentObserver的使用


下一篇:怎样判断iOS App是通过哪种途径启动的?