google+stackoverflow 通常在日期输入框里面希望通过点击事件来搞定但是点击事件一般都被软键盘拦截 所以需要吧 focusableInTouchMode设为false 这样点击事件就可以了 android: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, theOnClickListener should fire as expecte |
|