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

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -