ListView Item is not clickable in Android

前端 未结 4 1228
说谎
说谎 2020-12-16 04:09

In this ListView is not clickable, I want to perform an action on item click but I do not know why this is not clickable, I have also checked in debugging the controller is

4条回答
  •  难免孤独
    2020-12-16 04:52

    Ok you have a button in there. In your list_item xml put android:descendantFocusability="blocksDescendants" in the LinearLayout or RelativeLayout you have.

提交回复
热议问题