android:focusable="true"
android:focusableInTouchMode="true"
这样写就必须点两次才能响应点击事件
android:focusable="true"
android:focusableInTouchMode="false"
这样写,直接就点击一次就能响应了
详细内容参考:
https://blog.csdn.net/ndscuw/article/details/51811162
android:focusable="true"
android:focusableInTouchMode="true"
这样写就必须点两次才能响应点击事件
android:focusable="true"
android:focusableInTouchMode="false"
这样写,直接就点击一次就能响应了
详细内容参考:
https://blog.csdn.net/ndscuw/article/details/51811162
本文标题:点击事件必须点两次才能生效的原因
本文链接:https://www.haomeiwen.com/subject/ubrmsftx.html
网友评论