Skip to content

Instantly share code, notes, and snippets.

@arvkmr
Created December 1, 2017 22:12
Show Gist options
  • Select an option

  • Save arvkmr/320bb0babc53bd0a4bdd33dfd5cc53e3 to your computer and use it in GitHub Desktop.

Select an option

Save arvkmr/320bb0babc53bd0a4bdd33dfd5cc53e3 to your computer and use it in GitHub Desktop.

Revisions

  1. arvkmr created this gist Dec 1, 2017.
    13 changes: 13 additions & 0 deletions transparent_gradient_top_bottom.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    <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.