百度找不到这个答案的
google+stackoverflow
通常在日期输入框里面希望通过点击事件来搞定
但是点击事件一般都被软键盘拦截
所以需要吧
focusableInTouchMode设为false 这样点击事件就可以了
Unlike most other controls,
EditText
s are focusable while the system is in 'touch mode'. The first click event focuses the control, while the second click event actually fires the
OnClickListener
. If you disable touch-mode focus with the
android:focusableInTouchMode
View attribute, the
OnClickListener
should fire as expected.