Skip to content

Instantly share code, notes, and snippets.

@skooltch84
Created January 28, 2017 15:54
Show Gist options
  • Save skooltch84/661d701cbf56841c92454a3d139c391d to your computer and use it in GitHub Desktop.
Save skooltch84/661d701cbf56841c92454a3d139c391d to your computer and use it in GitHub Desktop.
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>
@seghier
Copy link

seghier commented Nov 19, 2019

Add this to make circular button

<solid android:color="#4CAF50" />
<corners android:radius="2000dp" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment