Change disabled appearance of Nominate for Deletion button

This commit is contained in:
Suchit Kar 2018-03-20 19:46:24 +05:30
parent 4acf0e2ed4
commit a449870d8b
4 changed files with 38 additions and 10 deletions

View file

@ -1,7 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/deleteButtonColor"/>
<corners android:radius="3dp" />
<stroke android:width="5px" android:color="@color/deleteBackgroundColor" />
</shape>
<selector
android:layout_height="match_parent"
android:layout_width="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_enabled="true" >
<shape
android:shape="rectangle">
<solid
android:color="@color/deleteButton"/>
<corners
android:radius="3dp" />
<stroke
android:width="5px"
android:color="@color/deleteRed" />
</shape>
</item>
<item
android:state_enabled="false" >
<shape
android:shape="rectangle">
<solid
android:color="@color/deleteButtonDark"/>
<corners
android:radius="3dp" />
</shape>
</item>
</selector>