Android的,有没有什么办法来禁用写里面使用键盘的日期选择器? [英] Android, is there any way to disable writing inside a date picker using keyboard?
本文介绍了Android的,有没有什么办法来禁用写里面使用键盘的日期选择器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有什么办法来禁用写里面使用键盘的日期选择器?正如我刚才想使用的加号和减号来设定日期。 提前致谢。
解决方案
myDatePicker.setDescendantFocusability(DatePicker.FOCUS_BLOCK_DESCENDANTS);
Is there any way to disable writing inside a date picker using keyboard? As I just want the plus and minus signs to be used to set the date. thanks in advance.
解决方案
myDatePicker.setDescendantFocusability(DatePicker.FOCUS_BLOCK_DESCENDANTS);
这篇关于Android的,有没有什么办法来禁用写里面使用键盘的日期选择器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文