1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Add new multi-select checkboxes to message list

Use the checkboxes of AOSP's Email app.
This commit is contained in:
cketti 2013-06-07 06:40:23 +02:00
parent 769ad843dd
commit a485c4c0d1
17 changed files with 22 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 718 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 511 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 B

View 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>

View 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>

View File

@ -26,9 +26,11 @@
<CheckBox <CheckBox
android:id="@+id/selected_checkbox" android:id="@+id/selected_checkbox"
android:layout_width="36dip" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:button="?attr/messageListCheckbox"
android:focusable="false" android:focusable="false"
android:clickable="false"
android:visibility="gone" /> android:visibility="gone" />
</LinearLayout> </LinearLayout>

View File

@ -44,6 +44,7 @@
<attr name="messageListThreadCountBackground" format="reference|color"/> <attr name="messageListThreadCountBackground" format="reference|color"/>
<attr name="messageListActiveItemBackgroundColor" format="reference|color"/> <attr name="messageListActiveItemBackgroundColor" format="reference|color"/>
<attr name="messageListDividerColor" format="reference|color"/> <attr name="messageListDividerColor" format="reference|color"/>
<attr name="messageListCheckbox" format="reference"/>
<attr name="messageViewHeaderBackgroundColor" format="reference|color"/> <attr name="messageViewHeaderBackgroundColor" format="reference|color"/>
<attr name="messageViewAttachmentBackground" format="reference"/> <attr name="messageViewAttachmentBackground" format="reference"/>
<attr name="messageComposeAddContactImage" format="reference"/> <attr name="messageComposeAddContactImage" format="reference"/>

View File

@ -45,6 +45,7 @@
<item name="messageListThreadCountBackground">@drawable/thread_count_box_light</item> <item name="messageListThreadCountBackground">@drawable/thread_count_box_light</item>
<item name="messageListActiveItemBackgroundColor">#ff2ea7d1</item> <item name="messageListActiveItemBackgroundColor">#ff2ea7d1</item>
<item name="messageListDividerColor">#ffcccccc</item> <item name="messageListDividerColor">#ffcccccc</item>
<item name="messageListCheckbox">@drawable/btn_check_message_list_light</item>
<item name="messageViewHeaderBackgroundColor">#ffffffff</item> <item name="messageViewHeaderBackgroundColor">#ffffffff</item>
<item name="messageViewAttachmentBackground">@drawable/attachment_text_box_light</item> <item name="messageViewAttachmentBackground">@drawable/attachment_text_box_light</item>
<item name="messageComposeAddContactImage">@drawable/ic_button_add_contact_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="messageListThreadCountBackground">@drawable/thread_count_box_dark</item>
<item name="messageListActiveItemBackgroundColor">#ff33b5e5</item> <item name="messageListActiveItemBackgroundColor">#ff33b5e5</item>
<item name="messageListDividerColor">#ff333333</item> <item name="messageListDividerColor">#ff333333</item>
<item name="messageListCheckbox">@drawable/btn_check_message_list_dark</item>
<item name="messageViewHeaderBackgroundColor">#000000</item> <item name="messageViewHeaderBackgroundColor">#000000</item>
<item name="messageViewAttachmentBackground">@drawable/attachment_text_box_dark</item> <item name="messageViewAttachmentBackground">@drawable/attachment_text_box_dark</item>
<item name="messageComposeAddContactImage">@drawable/ic_button_add_contact_dark</item> <item name="messageComposeAddContactImage">@drawable/ic_button_add_contact_dark</item>