On Android Lollipop, I\'m using:
android:background=\"?android:attr/selectableItemBackground\"
to have the material animated feedback when I cl
On API 21+ you can set android:theme="@android:style/ThemeOverlay.Material.Dark"
on a View
or ViewGroup
to change all of the theme attributes (text color, ripple color, button color, etc.) to the "dark" versions. If you set it on a ViewGroup
, the theme is also applied to all of the child elements during inflation. It's an easy way to have regions of "dark" in an otherwise "light" interface (or vice versa).