RecyclerView item not showing ripples/touch feedback when the item has a checkbox

前端 未结 3 1455
慢半拍i
慢半拍i 2021-01-12 19:11

I want the items in a RecyclerView to have touch feedback or ripples when pressed, but they seem to not be working, and I think it\'s because of the checkbox.

The ri

3条回答
  •  星月不相逢
    2021-01-12 20:07

    You use android:background="?android:attr/selectableItemBackground" but you should use android:foreground="?android:attr/selectableItemBackground"

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题