Skip to content Skip to sidebar Skip to footer

Ripples Break From Lollipop To Marshmallow

I have a bunch of items that have linear layouts with android:background='@drawable/selector_transparent_semi' Where selector_transparent_semi (values-21) is

Solution 1:

Appears that ripples changed (for M) to be on the release of a press instead of when you press in which explains why this no longer works the way it did.

This seems to do what I want - ripple and change the background if you hold it

<ripplexmlns:android="http://schemas.android.com/apk/res/android"android:color="@color/semitransparent_color"><itemandroid:id="@android:id/mask"android:drawable="@color/semitransparent_color" /></ripple>

Post a Comment for "Ripples Break From Lollipop To Marshmallow"