Add new multi-select checkboxes to message list
Use the checkboxes of AOSP's Email app.
BIN
res/drawable-hdpi/btn_check_off_normal_holo_dark.png
Normal file
After Width: | Height: | Size: 242 B |
BIN
res/drawable-hdpi/btn_check_off_normal_holo_light.png
Normal file
After Width: | Height: | Size: 119 B |
BIN
res/drawable-hdpi/btn_check_on_normal_holo_dark.png
Normal file
After Width: | Height: | Size: 718 B |
BIN
res/drawable-hdpi/btn_check_on_normal_holo_light.png
Normal file
After Width: | Height: | Size: 374 B |
BIN
res/drawable-mdpi/btn_check_off_normal_holo_dark.png
Normal file
After Width: | Height: | Size: 223 B |
BIN
res/drawable-mdpi/btn_check_off_normal_holo_light.png
Normal file
After Width: | Height: | Size: 249 B |
BIN
res/drawable-mdpi/btn_check_on_normal_holo_dark.png
Normal file
After Width: | Height: | Size: 511 B |
BIN
res/drawable-mdpi/btn_check_on_normal_holo_light.png
Normal file
After Width: | Height: | Size: 496 B |
BIN
res/drawable-xhdpi/btn_check_off_normal_holo_dark.png
Normal file
After Width: | Height: | Size: 217 B |
BIN
res/drawable-xhdpi/btn_check_off_normal_holo_light.png
Normal file
After Width: | Height: | Size: 142 B |
BIN
res/drawable-xhdpi/btn_check_on_normal_holo_dark.png
Normal file
After Width: | Height: | Size: 549 B |
BIN
res/drawable-xhdpi/btn_check_on_normal_holo_light.png
Normal file
After Width: | Height: | Size: 496 B |
8
res/drawable/btn_check_message_list_dark.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?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/btn_check_on_normal_holo_dark" />
|
||||
<item android:state_checked="false"
|
||||
android:drawable="@drawable/btn_check_off_normal_holo_dark" />
|
||||
</selector>
|
||||
|
8
res/drawable/btn_check_message_list_light.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?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/btn_check_on_normal_holo_light" />
|
||||
<item android:state_checked="false"
|
||||
android:drawable="@drawable/btn_check_off_normal_holo_light" />
|
||||
</selector>
|
||||
|
@ -26,9 +26,11 @@
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/selected_checkbox"
|
||||
android:layout_width="36dip"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:button="?attr/messageListCheckbox"
|
||||
android:focusable="false"
|
||||
android:clickable="false"
|
||||
android:visibility="gone" />
|
||||
|
||||
</LinearLayout>
|
||||
|
@ -44,6 +44,7 @@
|
||||
<attr name="messageListThreadCountBackground" format="reference|color"/>
|
||||
<attr name="messageListActiveItemBackgroundColor" format="reference|color"/>
|
||||
<attr name="messageListDividerColor" format="reference|color"/>
|
||||
<attr name="messageListCheckbox" format="reference"/>
|
||||
<attr name="messageViewHeaderBackgroundColor" format="reference|color"/>
|
||||
<attr name="messageViewAttachmentBackground" format="reference"/>
|
||||
<attr name="messageComposeAddContactImage" format="reference"/>
|
||||
|
@ -45,6 +45,7 @@
|
||||
<item name="messageListThreadCountBackground">@drawable/thread_count_box_light</item>
|
||||
<item name="messageListActiveItemBackgroundColor">#ff2ea7d1</item>
|
||||
<item name="messageListDividerColor">#ffcccccc</item>
|
||||
<item name="messageListCheckbox">@drawable/btn_check_message_list_light</item>
|
||||
<item name="messageViewHeaderBackgroundColor">#ffffffff</item>
|
||||
<item name="messageViewAttachmentBackground">@drawable/attachment_text_box_light</item>
|
||||
<item name="messageComposeAddContactImage">@drawable/ic_button_add_contact_light</item>
|
||||
@ -92,6 +93,7 @@
|
||||
<item name="messageListThreadCountBackground">@drawable/thread_count_box_dark</item>
|
||||
<item name="messageListActiveItemBackgroundColor">#ff33b5e5</item>
|
||||
<item name="messageListDividerColor">#ff333333</item>
|
||||
<item name="messageListCheckbox">@drawable/btn_check_message_list_dark</item>
|
||||
<item name="messageViewHeaderBackgroundColor">#000000</item>
|
||||
<item name="messageViewAttachmentBackground">@drawable/attachment_text_box_dark</item>
|
||||
<item name="messageComposeAddContactImage">@drawable/ic_button_add_contact_dark</item>
|
||||
|