diff options
author | Andy Huang <ath@google.com> | 2012-02-17 15:37:42 -0800 |
---|---|---|
committer | Andy Huang <ath@google.com> | 2012-02-24 11:53:02 -0800 |
commit | f70fc4052b72a850bbb9be585d0f5a4877ee9448 (patch) | |
tree | 47e55870842db2f016e94c2a0dbd288bd0b26d51 /res/layout/conversation_view.xml | |
parent | faa996b9b5469640c4ea72b89aef27dfb919d41a (diff) | |
download | android_packages_apps_UnifiedEmail-f70fc4052b72a850bbb9be585d0f5a4877ee9448.tar.gz android_packages_apps_UnifiedEmail-f70fc4052b72a850bbb9be585d0f5a4877ee9448.tar.bz2 android_packages_apps_UnifiedEmail-f70fc4052b72a850bbb9be585d0f5a4877ee9448.zip |
conversation view zooming
Zoom is enabled on the entire conversation using the built-in
WebView mechanism.
Wide messages are individually best-effort shrunken to
fit-width.
Start a custom ViewGroup to hold both message headers and the
single WebView. A common view parent makes input handling easy:
the WebView drives scroll position, and position is relayed
to the custom ViewGroup to cheaply shift around headers without
a full relayout. For now, all headers are inflated at once, but
soon they can be recycled depending on the virtual scroll
viewport.
Change-Id: I92555f9b79e10630457b17ca970ab9a2e9028e80
Diffstat (limited to 'res/layout/conversation_view.xml')
-rw-r--r-- | res/layout/conversation_view.xml | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/res/layout/conversation_view.xml b/res/layout/conversation_view.xml index a133e3f33..97ea06121 100644 --- a/res/layout/conversation_view.xml +++ b/res/layout/conversation_view.xml @@ -24,9 +24,15 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:ellipsize="end"/> - <!-- TODO: set layout_height to wrap_content once the rest - of the conversation view is in place --> - <ListView android:id="@+id/message_list" + <com.android.mail.ui.ConversationContainer + android:id="@+id/conversation_container" android:layout_width="match_parent" - android:layout_height="match_parent"/> -</LinearLayout>
\ No newline at end of file + android:layout_height="match_parent"> + + <com.android.mail.ui.ConversationWebView + android:id="@+id/webview" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + + </com.android.mail.ui.ConversationContainer> +</LinearLayout> |