morristech
2/11/2019 - 7:56 PM

Android Studio: Create a Ripple Effect for a Button

Android Studio: Create a Ripple Effect for a Button

<?xml version="1.0" encoding="utf-8"?>
<ripple
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:color="@color/colorAccent">
    <item>
        <shape
            android:shape="rectangle">
            <solid android:color="#4CAF50" />
        </shape>
    </item>
</ripple>