点击事件必须点两次才能生效的原因

android:focusable="true"
android:focusableInTouchMode="true"
这样写就必须点两次才能响应点击事件
android:focusable="true"
android:focusableInTouchMode="false"
这样写,直接就点击一次就能响应了
详细内容参考:
https://blog.csdn.net/ndscuw/article/details/51811162

你可能感兴趣的:(点击事件必须点两次才能生效的原因)