How to prevent Button inside ListItem getting highlight

后端 未结 4 1747
轻奢々
轻奢々 2020-12-17 01:52

So I have custom list item with buttons for a ListView. When pressed, the button display alternate drawable to show feedback to user. However when I click on the row, every

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-17 02:25

    I have this problem too, I Google it and try it about 3 hours! now I found the solution. just add OnClickListener to child view. and even DO NOTHING in OnClick method. It works on 2.3 emulator and my nexus 5.

提交回复
热议问题