<?xml version="1.0" encoding="utf-8"?>
<gradient>
<shape xmlns:android="http://ift.tt/nIICcg" android:shape="rectangle" >
<gradient
android:type="linear"
android:centerX="35%"
android:startColor="#FF4D0000"
android:centerColor="#FF4D0000"
android:endColor="#FFe5f011"
android:angle="225"/>
</shape>
<shape xmlns:android="http://ift.tt/nIICcg" android:shape="rectangle" >
<gradient
android:type="radial"
android:centerX="50%"
android:centerY="50%"
android:startColor="#FF4D0000"
android:centerColor="#FF4D0000"
android:endColor="#FFe5f011"
android:gradientRadius="35"/>
</shape>
</gradient>
And here is the shape that I have formed called gradient and the way I assigned it, is:
android:background="@drawable/gradient"
No comments:
Post a Comment