Change Textview Background With Ripples
I have a RecyclerView (grid layout) whose elements are TextViews. When a user clicks on a TextView I change the color of the background. I allow for multiple selections. All of thi
Solution 1:
Assuming you are using the Android Support library change the android:background
of your item layout to ?attr/selectableItemBackground
or ?attr/selectableItemBackgroundBorderless
which will apply the ripple on Lollipop+ devices and fallback to a full item select on lower devices.
Post a Comment for "Change Textview Background With Ripples"