Reformat message_list_option.xml
This commit is contained in:
parent
03de64e84c
commit
4d7a40b520
1 changed files with 81 additions and 84 deletions
|
@ -1,207 +1,204 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<!--
|
||||
The comments preceding the (top level) menu items denote which part of the combined message
|
||||
list/view activity the item belongs to. Either "MessageList", "MessageView", or "always" (as in:
|
||||
always show this item, no matter what display mode we're in).
|
||||
|
||||
The comments are for informational purposes only. Please make sure to adjust the code in
|
||||
MessageList.configureMenu() if you make any changes to this file.
|
||||
-->
|
||||
|
||||
<!-- MessageList -->
|
||||
<item
|
||||
android:id="@+id/search"
|
||||
android:icon="?attr/iconActionSearch"
|
||||
app:showAsAction="always"
|
||||
android:title="@string/search_action"
|
||||
app:actionViewClass="androidx.appcompat.widget.SearchView"
|
||||
android:title="@string/search_action"/>
|
||||
app:showAsAction="always" />
|
||||
|
||||
<!-- MessageList -->
|
||||
<item
|
||||
android:id="@+id/search_remote"
|
||||
android:icon="?attr/iconActionRemoteSearch"
|
||||
app:showAsAction="always"
|
||||
android:title="@string/action_remote_search"
|
||||
android:visible="false"/>
|
||||
android:visible="false"
|
||||
app:showAsAction="always" />
|
||||
|
||||
<!-- MessageView -->
|
||||
<item
|
||||
android:id="@+id/archive"
|
||||
android:visible="false"
|
||||
android:icon="?attr/iconActionArchive"
|
||||
app:showAsAction="always"
|
||||
android:title="@string/archive_action"/>
|
||||
android:title="@string/archive_action"
|
||||
android:visible="false"
|
||||
app:showAsAction="always" />
|
||||
|
||||
<!-- MessageView -->
|
||||
<item
|
||||
android:id="@+id/delete"
|
||||
android:visible="false"
|
||||
android:icon="?attr/iconActionDelete"
|
||||
app:showAsAction="always"
|
||||
android:title="@string/delete_action"/>
|
||||
android:title="@string/delete_action"
|
||||
android:visible="false"
|
||||
app:showAsAction="always" />
|
||||
|
||||
<!-- MessageView -->
|
||||
<item
|
||||
android:id="@+id/toggle_unread"
|
||||
android:visible="false"
|
||||
android:icon="?attr/iconActionMarkAsUnread"
|
||||
app:showAsAction="always"
|
||||
android:title="@string/mark_as_unread_action"/>
|
||||
android:title="@string/mark_as_unread_action"
|
||||
android:visible="false"
|
||||
app:showAsAction="always" />
|
||||
|
||||
<!-- MessageView -->
|
||||
<item
|
||||
android:id="@+id/previous_message"
|
||||
android:visible="false"
|
||||
android:title="@string/previous_action"
|
||||
android:icon="?attr/iconActionPreviousMessage"
|
||||
android:title="@string/previous_action"
|
||||
android:visible="false"
|
||||
app:showAsAction="always" />
|
||||
|
||||
<!-- MessageView -->
|
||||
<item
|
||||
android:id="@+id/next_message"
|
||||
android:visible="false"
|
||||
android:title="@string/next_action"
|
||||
android:icon="?attr/iconActionNextMessage"
|
||||
app:showAsAction="always"
|
||||
/>
|
||||
android:title="@string/next_action"
|
||||
android:visible="false"
|
||||
app:showAsAction="always" />
|
||||
|
||||
<!-- MessageView -->
|
||||
<item
|
||||
android:id="@+id/spam"
|
||||
android:visible="false"
|
||||
android:icon="?attr/iconActionSpam"
|
||||
app:showAsAction="ifRoom"
|
||||
android:title="@string/spam_action"/>
|
||||
android:title="@string/spam_action"
|
||||
android:visible="false"
|
||||
app:showAsAction="ifRoom" />
|
||||
|
||||
<!-- MessageView -->
|
||||
<item
|
||||
android:id="@+id/move"
|
||||
android:visible="false"
|
||||
android:icon="?attr/iconActionMove"
|
||||
app:showAsAction="ifRoom"
|
||||
android:title="@string/move_action"/>
|
||||
android:title="@string/move_action"
|
||||
android:visible="false"
|
||||
app:showAsAction="ifRoom" />
|
||||
|
||||
<!-- MessageView -->
|
||||
<item
|
||||
android:id="@+id/copy"
|
||||
android:visible="false"
|
||||
android:icon="?attr/iconActionCopy"
|
||||
app:showAsAction="ifRoom"
|
||||
android:title="@string/copy_action"/>
|
||||
android:title="@string/copy_action"
|
||||
android:visible="false"
|
||||
app:showAsAction="ifRoom" />
|
||||
|
||||
<!-- MessageView -->
|
||||
<item
|
||||
android:id="@+id/move_to_drafts"
|
||||
android:title="@string/move_to_drafts_action"
|
||||
app:showAsAction="never"
|
||||
android:visible="false"/>
|
||||
android:visible="false"
|
||||
app:showAsAction="never" />
|
||||
|
||||
<!-- MessageView -->
|
||||
<item
|
||||
android:id="@+id/single_message_options"
|
||||
android:visible="false"
|
||||
android:icon="?attr/iconActionSingleMessageOptions"
|
||||
app:showAsAction="ifRoom"
|
||||
android:title="@string/single_message_options_action">
|
||||
android:title="@string/single_message_options_action"
|
||||
android:visible="false"
|
||||
app:showAsAction="ifRoom">
|
||||
<menu>
|
||||
<item
|
||||
android:id="@+id/reply"
|
||||
android:title="@string/reply_action"/>
|
||||
android:title="@string/reply_action" />
|
||||
<item
|
||||
android:id="@+id/reply_all"
|
||||
android:title="@string/reply_all_action"/>
|
||||
android:title="@string/reply_all_action" />
|
||||
<item
|
||||
android:id="@+id/forward"
|
||||
android:title="@string/forward_action"/>
|
||||
android:title="@string/forward_action" />
|
||||
<item
|
||||
android:id="@+id/forward_as_attachment"
|
||||
android:title="@string/forward_as_attachment_action"/>
|
||||
android:title="@string/forward_as_attachment_action" />
|
||||
<item
|
||||
android:id="@+id/edit_as_new_message"
|
||||
android:title="@string/edit_as_new_message_action"/>
|
||||
android:title="@string/edit_as_new_message_action" />
|
||||
<item
|
||||
android:id="@+id/share"
|
||||
android:title="@string/send_alternate_action"/>
|
||||
android:title="@string/send_alternate_action" />
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
<!-- MessageView -->
|
||||
<item
|
||||
android:id="@+id/refile"
|
||||
android:visible="false"
|
||||
android:icon="?attr/iconActionSingleMessageOptions"
|
||||
app:showAsAction="never"
|
||||
android:title="@string/refile_action">
|
||||
android:title="@string/refile_action"
|
||||
android:visible="false"
|
||||
app:showAsAction="never">
|
||||
<menu>
|
||||
<item
|
||||
android:id="@+id/refile_archive"
|
||||
android:title="@string/archive_action"/>
|
||||
android:title="@string/archive_action" />
|
||||
|
||||
<!-- MessageView -->
|
||||
<item
|
||||
android:id="@+id/refile_spam"
|
||||
android:title="@string/spam_action"/>
|
||||
android:title="@string/spam_action" />
|
||||
|
||||
<!-- MessageView -->
|
||||
<item
|
||||
android:id="@+id/refile_move"
|
||||
android:title="@string/move_action"/>
|
||||
android:title="@string/move_action" />
|
||||
|
||||
<!-- MessageView -->
|
||||
<item
|
||||
android:id="@+id/refile_copy"
|
||||
android:title="@string/copy_action"/>
|
||||
android:title="@string/copy_action" />
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
<item android:id="@+id/unsubscribe"
|
||||
<!-- MessageView -->
|
||||
<item
|
||||
android:id="@+id/unsubscribe"
|
||||
android:title="@string/unsubscribe_action"
|
||||
android:visible="false"
|
||||
app:showAsAction="never"
|
||||
android:title="@string/unsubscribe_action"/>
|
||||
app:showAsAction="never" />
|
||||
|
||||
<item android:id="@+id/show_headers"
|
||||
<!-- MessageView -->
|
||||
<item
|
||||
android:id="@+id/show_headers"
|
||||
android:title="@string/show_headers_action"
|
||||
android:visible="false"
|
||||
app:showAsAction="never"
|
||||
android:title="@string/show_headers_action"/>
|
||||
app:showAsAction="never" />
|
||||
|
||||
<!-- always -->
|
||||
<item
|
||||
android:id="@+id/compose"
|
||||
android:icon="?attr/iconActionCompose"
|
||||
app:showAsAction="ifRoom"
|
||||
android:title="@string/compose_action"/>
|
||||
android:title="@string/compose_action"
|
||||
app:showAsAction="ifRoom" />
|
||||
|
||||
<!-- MessageList -->
|
||||
<item
|
||||
android:id="@+id/set_sort"
|
||||
android:icon="?attr/iconActionSort"
|
||||
app:showAsAction="ifRoom"
|
||||
android:title="@string/sort_by">
|
||||
android:title="@string/sort_by"
|
||||
app:showAsAction="ifRoom">
|
||||
<menu>
|
||||
<item
|
||||
android:id="@+id/set_sort_date"
|
||||
android:title="@string/sort_by_date"/>
|
||||
android:title="@string/sort_by_date" />
|
||||
<item
|
||||
android:id="@+id/set_sort_arrival"
|
||||
android:title="@string/sort_by_arrival"/>
|
||||
android:title="@string/sort_by_arrival" />
|
||||
<item
|
||||
android:id="@+id/set_sort_subject"
|
||||
android:title="@string/sort_by_subject"/>
|
||||
android:title="@string/sort_by_subject" />
|
||||
<item
|
||||
android:id="@+id/set_sort_sender"
|
||||
android:title="@string/sort_by_sender"/>
|
||||
android:title="@string/sort_by_sender" />
|
||||
<item
|
||||
android:id="@+id/set_sort_flag"
|
||||
android:title="@string/sort_by_flag"/>
|
||||
android:title="@string/sort_by_flag" />
|
||||
<item
|
||||
android:id="@+id/set_sort_unread"
|
||||
android:title="@string/sort_by_unread"/>
|
||||
android:title="@string/sort_by_unread" />
|
||||
<item
|
||||
android:id="@+id/set_sort_attach"
|
||||
android:title="@string/sort_by_attach"/>
|
||||
android:title="@string/sort_by_attach" />
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
|
@ -209,21 +206,21 @@
|
|||
<item
|
||||
android:id="@+id/select_all"
|
||||
android:icon="?attr/iconActionSelectAll"
|
||||
app:showAsAction="never"
|
||||
android:title="@string/batch_select_all"/>
|
||||
android:title="@string/batch_select_all"
|
||||
app:showAsAction="never" />
|
||||
|
||||
<!-- MessageList -->
|
||||
<item
|
||||
android:id="@+id/mark_all_as_read"
|
||||
app:showAsAction="never"
|
||||
android:title="@string/mark_all_as_read"/>
|
||||
android:title="@string/mark_all_as_read"
|
||||
app:showAsAction="never" />
|
||||
|
||||
<!-- MessageList -->
|
||||
<item
|
||||
android:id="@+id/send_messages"
|
||||
android:icon="?attr/iconActionUpload"
|
||||
app:showAsAction="never"
|
||||
android:title="@string/send_messages_action"/>
|
||||
android:title="@string/send_messages_action"
|
||||
app:showAsAction="never" />
|
||||
|
||||
<!-- MessageList -->
|
||||
<item
|
||||
|
@ -234,20 +231,20 @@
|
|||
<!-- MessageList -->
|
||||
<item
|
||||
android:id="@+id/expunge"
|
||||
app:showAsAction="never"
|
||||
android:title="@string/expunge_action"/>
|
||||
android:title="@string/expunge_action"
|
||||
app:showAsAction="never" />
|
||||
|
||||
<!-- MessageView -->
|
||||
<item
|
||||
android:visible="false"
|
||||
android:id="@+id/toggle_message_view_theme"
|
||||
app:showAsAction="never"
|
||||
android:title="@string/message_view_theme_action_dark"/>
|
||||
android:title="@string/message_view_theme_action_dark"
|
||||
android:visible="false"
|
||||
app:showAsAction="never" />
|
||||
|
||||
<!-- MessageList -->
|
||||
<item
|
||||
android:id="@+id/search_everywhere"
|
||||
app:showAsAction="never"
|
||||
android:title="@string/search_everywhere_action"/>
|
||||
android:title="@string/search_everywhere_action"
|
||||
app:showAsAction="never" />
|
||||
|
||||
</menu>
|
||||
|
|
Loading…
Reference in a new issue