Created
December 1, 2017 22:12
-
-
Save arvkmr/320bb0babc53bd0a4bdd33dfd5cc53e3 to your computer and use it in GitHub Desktop.
Transparent gradient that from top to bottom of image android
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
<shape xmlns:android="http://schemas.android.com/apk/res/android" | |
android:shape="rectangle" > | |
<gradient | |
android:angle="90" | |
android:endColor="#00ffffff" | |
android:startColor="#aa000000" | |
android:centerColor="#00ffffff" /> | |
<corners android:radius="0dp" /> | |
</shape> | |
// set this file as src and image as background on imageview. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍👍👍