[go: nahoru, domu]

Skip to content

Commit

Permalink
Added selector for strikethrough button
Browse files Browse the repository at this point in the history
  • Loading branch information
aforcier committed Apr 29, 2015
1 parent 3bf29a2 commit 5e59531
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<bitmap
android:src="@drawable/format_bar_button_strikethrough_highlighted"
android:gravity="center"/>
</item>
<item android:top="@dimen/format_bar_button_highlighted_underline_top">
<shape android:shape="line">
<stroke
android:width="@dimen/format_bar_button_highlighted_underline_width"
android:color="@color/format_bar_button_highlighted_color"/>
</shape>
</item>
</layer-list>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true" android:drawable="@drawable/format_bar_button_strikethrough_selected_state"/>
<item android:state_pressed="true" android:drawable="@drawable/format_bar_button_strikethrough_selected_state"/>
<item>
<bitmap
android:src="@drawable/format_bar_button_strikethrough"
android:gravity="center"/>
</item>
</selector>

0 comments on commit 5e59531

Please sign in to comment.