Articles → ANDROID → Change the shape of button in android application

Change the shape of button in android application






Example











Click to Enlarge




Click to Enlarge







<?xml version="1.0" encoding="utf-8"?>
<shape
    xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
    <stroke android:color="#ff0000"></stroke>
    <gradient android:endColor="@color/design_default_color_primary"
       android:startColor="@color/colorPrimaryDark" android:angle="90"></gradient>
</shape>





Click to Enlarge




Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Monday, November 25, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250