From d6a2978857e0866d7441f8e140338477545d59a5 Mon Sep 17 00:00:00 2001 From: Makoto Onuki Date: Wed, 21 Jul 2010 14:29:49 -0700 Subject: [PATCH] First cut of two pane activity. How to launch: - Kick "Email 2 Pane" in the app drawer. Major known issues: - When you launches "Email 2 Pane", it starts directly; the logic in Welcom won't be executed. - There's no UI to add accounts. Use the old UI. - There's no way to select non-default accounts. - The on-screen buttons except for older/newer don't work. - No contex menus work. Change-Id: I38374acafafbae62e46f84294a7677e54686cfc2 --- AndroidManifest.xml | 36 +- res/layout/message_list_xl.xml | 118 +++++ res/layout/message_view_header.xml | 2 +- res/values/strings.xml | 4 + .../email/activity/DefaultAccountLoader.java | 54 ++ .../email/activity/MailboxListFragment.java | 27 +- .../email/activity/MessageListFragment.java | 25 +- .../android/email/activity/MessageListXL.java | 466 ++++++++++++++++++ .../email/activity/MessageOrderManager.java | 4 + .../email/activity/MessageViewFragment.java | 19 +- 10 files changed, 731 insertions(+), 24 deletions(-) create mode 100644 res/layout/message_list_xl.xml create mode 100644 src/com/android/email/activity/DefaultAccountLoader.java create mode 100644 src/com/android/email/activity/MessageListXL.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index f3b74501b..a5b397314 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -4,9 +4,9 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - + http://www.apache.org/licenses/LICENSE-2.0 - + Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -66,6 +66,20 @@ + + + + + + + - - - + - + @@ -188,7 +202,7 @@ - + @@ -261,12 +275,12 @@ android:enabled="false" > - + - + diff --git a/res/layout/message_list_xl.xml b/res/layout/message_list_xl.xml new file mode 100644 index 000000000..e5323910b --- /dev/null +++ b/res/layout/message_list_xl.xml @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + +