android list view clickable problem

前端 未结 2 1544
不知归路
不知归路 2020-12-20 19:45

i have this customized list. each row contains an image and two lines of text one below the other. i want to open a new activity when any list item is clicked. but i am not

相关标签:
2条回答
  • 2020-12-20 20:22

    Please have a look whether the row layout has any items which are focusable. If an ListView Item contains focusable children, the Listview Handler will not be fired.

    0 讨论(0)
  • 2020-12-20 20:38

    I think there is a bug in the SDK that prevents the onItemClickListeners from firing when there are focusable views in the View of your items.

    So you should try to do a setFocusable(false) on all the Views of your items.

    The problem is described here

    0 讨论(0)
提交回复
热议问题