Listview itemclick not work

后端 未结 6 1506
深忆病人
深忆病人 2020-11-27 20:33
  1. I have a ListView in my ListView show ImageButton.

  2. I set focusalble \"false\" and focusableInTouchMode \"false\" to ImageButton.

  3. I s

6条回答
  •  被撕碎了的回忆
    2020-11-27 21:02

    You are not the only sufferer :) This behavior is often considered as a bug by Android developers Have a look at this link of their conversation.

    To solve your problem- simply include android:descendantFocusability="blocksDescendants" attribute in your root layout.

提交回复
热议问题