In Android 5.0, my ListView produces a ripple effect when clicking a list item. Is there a way to disable this effect? Looking at the docs, I don't see any way (https://developer.android.com/reference/android/widget/ListView.html)
Disable Ripple on ListView
17.1k Views Asked by tir38 At
3
You can remove or replace the list selector using the
android:listSelector
property. The default list selector under Material is?android:attr/selectableItemBackground
which is a bounded ripple.To completely disable selector, you can use a
@null
or@android:color/transparent
(works better for some Android versions) value as following: