material design - Android ListFragment: How to enable the Lollipop "Ripple Effect"? -


i have activity listfragment inside (to support tablet-layout, thats not important).

now want enable ripple effect listfragment. example in activity, use normal listview , works there automaticly.

how possible in easy way?

example (not listfragment you'll point) enter image description here

no need define ripple effect. if want activate standard ripple effect on api 21+ apply

android:background="?android:selectableitembackground" 

on list item. provide same selector-like effect on pre-api 21 devices without ripple.


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -