How to make an individual ripple without borders

Here is my usual ripple

<ripple xmlns:android="http://schemas.android.com/apk/res/android"
        android:color="?android:colorControlHighlight">
        <item android:drawable="@color/white" />
</ripple>

How to make it limitless?

+4
source share
1 answer

According to the RippleDrawable documentation , the ripples will be masked against the composite of its child layers.

In this case, your drawable will be masked by a single element of your ripple.

To have ripple without a mask, you can define your ripple as follows:

<ripple android:color="?android:colorControlHighlight" />
+5
source

Source: https://habr.com/ru/post/1629014/


All Articles