ViewPostImeInputStage ACTION_DOWN

前端 未结 6 1665
抹茶落季
抹茶落季 2020-12-06 05:08

As I\'m trying to debug my program, I can\'t figure out the error.

I have initialized two buttons and used .setOnClickListener on them. When the user clicks the bu

6条回答
  •  無奈伤痛
    2020-12-06 05:21

    I had this happen to me on the first click of a CardView inside a RecyclerView. It turns out the CardView XML set:

    android:focusable="true"
    android:focusableInTouchMode="true"
    

    Once I removed that, the first click (and subsequent clicks) worked fine, and I no longer had the error with ACTION_DOWN.

提交回复
热议问题