Skip to content

Instantly share code, notes, and snippets.

@dominicthomas
Created August 22, 2019 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dominicthomas/b0f0c683ce16d76dcdfc2d3da9a6ae21 to your computer and use it in GitHub Desktop.
Save dominicthomas/b0f0c683ce16d76dcdfc2d3da9a6ae21 to your computer and use it in GitHub Desktop.
A ripple with a gradient overlay
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/colorPrimary">
<item>
<layer-list>
<item>
<shape android:shape="rectangle">
<gradient
android:angle="90"
android:centerColor="#00ffffff"
android:endColor="#00ffffff"
android:startColor="#aa000000" />
<corners android:radius="0dp" />
</shape>
</item>
</layer-list>
</item>
</ripple>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment