Created
August 22, 2019 14:11
-
-
Save dominicthomas/b0f0c683ce16d76dcdfc2d3da9a6ae21 to your computer and use it in GitHub Desktop.
A ripple with a gradient overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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