From 931ca67a1f1baa0c1fd115124e35183c7786fc63 Mon Sep 17 00:00:00 2001 From: Makoto Onuki Date: Mon, 8 Nov 2010 15:04:10 -0800 Subject: [PATCH] New message view command layout UI Changes: - "Move", "Delete" and "Mark as unread" became action bar commands. - The message view bottom panel now only has "newer" and "older" buttons, with the current position in the message list. (shown as POS of TOTAL) - The buttom panel is now shown only on portrait Non UI changes - MessageOrderManager now keeps track of the current cursor position as well as the total message count. - Fixed the "move_action" string, which was wrongly marked as non-translatable. Bug 3169454 Change-Id: I599543f9e11000a4ee283d31fbd407b2ab53ac44 --- .../message_command_button_view.xml | 26 ++++++ .../message_command_button_view.xml | 54 +++++++++++ res/layout/message_command_button_view.xml | 83 ----------------- res/menu/message_list_xl_option.xml | 2 +- res/menu/message_view_fragment_option.xml | 37 ++++++++ res/values/strings.xml | 13 ++- .../activity/MessageCommandButtonView.java | 91 +++++++------------ .../android/email/activity/MessageListXL.java | 6 +- .../email/activity/MessageOrderManager.java | 26 ++++++ .../email/activity/MessageViewFragment.java | 82 ++++++++++------- .../activity/MessageOrderManagerTest.java | 22 +++++ 11 files changed, 260 insertions(+), 182 deletions(-) create mode 100644 res/layout-land/message_command_button_view.xml create mode 100644 res/layout-port/message_command_button_view.xml delete mode 100644 res/layout/message_command_button_view.xml create mode 100644 res/menu/message_view_fragment_option.xml diff --git a/res/layout-land/message_command_button_view.xml b/res/layout-land/message_command_button_view.xml new file mode 100644 index 000000000..ca191967f --- /dev/null +++ b/res/layout-land/message_command_button_view.xml @@ -0,0 +1,26 @@ + + + + + + + + diff --git a/res/layout-port/message_command_button_view.xml b/res/layout-port/message_command_button_view.xml new file mode 100644 index 000000000..36707b6af --- /dev/null +++ b/res/layout-port/message_command_button_view.xml @@ -0,0 +1,54 @@ + + + + + + + +