Skip to content

Commit 70538b3

Browse files
authored
Add disabled state for light & clear buttons (#2)
* Add disabled state for light button * Add disabled state for light button
1 parent d5158e6 commit 70538b3

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<shape xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:shape="rectangle">
4+
<corners android:radius="@dimen/corner_radius" />
5+
<solid android:color="@color/misty_grey" />
6+
</shape>

app/src/main/res/drawable/button_bfr_round_light.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<selector xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item android:drawable="@drawable/button_bfr_round_light_disabled" android:state_enabled="false" />
34
<item android:drawable="@drawable/button_bfr_round_light_unfocused" android:state_focused="false" android:state_pressed="false" android:state_selected="false" />
45
<item android:drawable="@drawable/button_bfr_round_light_unfocused" android:state_focused="false" android:state_pressed="false" android:state_selected="true" />
56
<item android:drawable="@drawable/button_bfr_round_light_pressed" android:state_pressed="true" />
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<shape xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:shape="rectangle">
4+
<corners android:radius="@dimen/corner_radius" />
5+
<solid android:color="@color/misty_grey" />
6+
</shape>

app/src/main/res/drawable/button_bfr_round_white.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<selector xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item android:drawable="@drawable/button_bfr_round_clear_disabled" android:state_enabled="false" />
34
<item android:drawable="@drawable/button_bfr_round_clear_unfocused" android:state_focused="false" android:state_pressed="false" android:state_selected="false" />
45
<item android:drawable="@drawable/button_bfr_round_clear_unfocused" android:state_focused="false" android:state_pressed="false" android:state_selected="true" />
56
<item android:drawable="@drawable/button_bfr_round_clear_pressed" android:state_pressed="true" />

0 commit comments

Comments
 (0)