今天碰到的问题,android登陆界面,有个重置密码TextView,点击第一次没有反应,点击第二次,才跳转到重置界面,搜索之后,发现,是
android:focusable="true"
android:focusableInTouchMode="true"
的问题,将android:focusableInTouchMode改为false之后,问题解决。
再来看看这个属性,android:focusableInTouchMode,是否通过touch来获取聚焦,若为true,第一次是获取焦点,第二次才相应click事件,为false,则直接响应。
本文探讨了Android中TextView点击响应延迟的现象,并给出了修改android:focusableInTouchMode属性值为false来解决该问题的方法。
2268

被折叠的 条评论
为什么被折叠?



