Skip to content

Commit 5e59531

Browse files
committed
Added selector for strikethrough button
1 parent 3bf29a2 commit 5e59531

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<layer-list
3+
xmlns:android="http://schemas.android.com/apk/res/android">
4+
<item>
5+
<bitmap
6+
android:src="@drawable/format_bar_button_strikethrough_highlighted"
7+
android:gravity="center"/>
8+
</item>
9+
<item android:top="@dimen/format_bar_button_highlighted_underline_top">
10+
<shape android:shape="line">
11+
<stroke
12+
android:width="@dimen/format_bar_button_highlighted_underline_width"
13+
android:color="@color/format_bar_button_highlighted_color"/>
14+
</shape>
15+
</item>
16+
</layer-list>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item android:state_checked="true" android:drawable="@drawable/format_bar_button_strikethrough_selected_state"/>
4+
<item android:state_pressed="true" android:drawable="@drawable/format_bar_button_strikethrough_selected_state"/>
5+
<item>
6+
<bitmap
7+
android:src="@drawable/format_bar_button_strikethrough"
8+
android:gravity="center"/>
9+
</item>
10+
</selector>

0 commit comments

Comments
 (0)