How to prevent Button inside ListItem getting highlight

后端 未结 4 1751
轻奢々
轻奢々 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:24

    im my opinion you need to disable the state from the parent as android:duplicateParentState="false"

    add this to your Button

提交回复
热议问题