Skip to content

Instantly share code, notes, and snippets.

@subashz
Created June 22, 2018 08:08
Show Gist options
  • Save subashz/801007ebf6c6c05185de1e6aa52ec3a2 to your computer and use it in GitHub Desktop.
Save subashz/801007ebf6c6c05185de1e6aa52ec3a2 to your computer and use it in GitHub Desktop.
Glow XML Android Layout
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<gradient
android:startColor="#fff"
android:endColor="#fff"
android:centerColor="@color/transparent"
android:type="linear"/>
</shape>
</item>
<item>
<shape>
<gradient
android:startColor="#fff"
android:endColor="#fff"
android:centerColor="@color/transparent"
android:angle="90"
android:type="linear"/>
</shape>
</item>
<item>
<shape>
<gradient
android:startColor="@color/transparent"
android:endColor="@color/transparent"
android:centerColor="#ff0000"
android:gradientRadius="200dp"
android:type="radial"/>
</shape>
</item>
@subashz
Copy link
Author

subashz commented Jun 22, 2018

Accidently created glow effect with xml

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