How to make Gradient file in android studio

                                   


 

Gradient Button

 <?xml version="1.0" encoding="utf-8"?>

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">

<stroke
android:color="@color/black"
android:width="5dp"/>

<solid
android:color="@color/purple_500"/>

<corners
android:radius="10dp"/>

<gradient
android:startColor="@color/black"
android:centerColor="@color/purple_500"
android:endColor="@color/white"
android:angle="125"/>
</shape>



Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.