OnItemClickListener on a ListView inside a Fragment not working

后端 未结 7 1480
粉色の甜心
粉色の甜心 2020-12-29 09:11

EDIT: SOLVED. If there\'s anything focusable in the XML of the items, it will break the touch of the list, in other words, android:focusable=false to all the checkbo

7条回答
  •  天涯浪人
    2020-12-29 09:35

    This may be helpful Answer by raghunanadan in below link solved my problem

    listview OnItemClick listner not work in fragment

    Add this to the layout

    android:descendantFocusability="blocksDescendants"

提交回复
热议问题