码迷,mamicode.com
首页 > 移动开发 > 详细

Disable keyboard input on Android TimePicker

时间:2014-06-04 20:02:57      阅读:406      评论:0      收藏:0      [点我收藏+]

标签:des   android   c   style   class   code   

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://stackoverflow.com/questions/2391216/disable-keyboard-input-on-android-timepicker

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

Disable keyboard input on Android TimePicker

标签:des   android   c   style   class   code   

原文地址:http://www.cnblogs.com/savagemorgan/p/3759504.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!