Here I am writing the code of XML That I am using to change the background of button.
roundbutton2.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#eea0e5ee"/>
<corners android:bottomRightRadius="10dp"
android:bottomLeftRadius="10dp"
android:topRightRadius="10dp"
android:topLeftRadius="10dp"/>
</shape>
Buttons snippet
<Button
android:layout_width="125dp"
android:layout_height="55dp"
android:text="Clear"
android:id="@+id/bt_clear"
android:layout_marginLeft="55dp"
android:layout_marginRight="30dp"
android:textColor="#FFFFFF"
android:textSize="25dp"
android:textAllCaps="false"
android:background = "@drawable/roundbutton2"/>
<Button
android:layout_width="125dp"
android:layout_height="55dp"
android:text="Proceed"
android:textColor="#FFFFFF"
android:textSize="25dp"
android:id="@+id/bt_proceed"
android:textAllCaps="false"
android:background = "@drawable/roundbutton2"/>
For first i want the #EE494D4E color and for second button i want #eea0e5ee.How can do this. I want the different color for both button using same XML file. Please Tell me about this.Thanx