Background Selector in RecyclerView Item

前端 未结 10 1080
无人共我
无人共我 2020-12-13 17:42

I\'m using the RecyclerView like below:



        
10条回答
  •  孤街浪徒
    2020-12-13 18:31

    You need to set android:clickable="true" in the element xml, and if you have more selectors in some view inside your view, you need to set android:duplicateParentState="true" there too. Thats works on pre honeycomb apis.

提交回复
热议问题