1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 Copyright (C) 2011 Google Inc. 4 Licensed to The Android Open Source Project. 5 6 Licensed under the Apache License, Version 2.0 (the "License"); 7 you may not use this file except in compliance with the License. 8 You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, software 13 distributed under the License is distributed on an "AS IS" BASIS, 14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 See the License for the specific language governing permissions and 16 limitations under the License. 17 --> 18 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 <com.android.mail.browse.ConversationContainer 22 android:id="@+id/conversation_container" 23 android:layout_width="match_parent" 24 android:layout_height="match_parent"> 25 26 <!-- base WebView layer --> 27 <com.android.mail.browse.ConversationWebView 28 android:id="@+id/webview" 29 android:layout_width="match_parent" 30 android:layout_height="match_parent" 31 style="@style/ConversationViewSideMarginStyle" 32 android:scrollbars="none" /> 33 34 <include layout="@layout/conversation_side_border_overlay"/> 35 36 <!-- scrolling overlay views go here --> 37 38 <!-- topmost layer for floating views (e.g. snap header, New Message bar) --> 39 <!-- ConversationContainer draws this child on the very top, above all scrolling views --> 40 <FrameLayout 41 android:id="@+id/conversation_topmost_overlay" 42 android:layout_width="match_parent" 43 android:layout_height="match_parent"> 44 45 <include layout="@layout/conversation_message_header" 46 android:id="@+id/snap_header" 47 android:layout_width="match_parent" 48 android:layout_height="wrap_content" 49 style="@style/ConversationViewSideMarginStyle" 50 android:layout_gravity="top" 51 android:visibility="gone" /> 52 53 <Button xmlns:android="http://schemas.android.com/apk/res/android" 54 android:id="@+id/new_message_notification_bar" 55 style="@style/NewMessageButtonStyle" 56 android:layout_width="match_parent" 57 android:layout_height="wrap_content" 58 android:layout_gravity="bottom" 59 android:animateLayoutChanges="true" 60 android:paddingLeft="24dp" 61 android:paddingRight="24dp" 62 android:visibility="gone" /> 63 64 </FrameLayout> 65 66 </com.android.mail.browse.ConversationContainer> 67 68 <com.android.mail.browse.ScrollIndicatorsView 69 android:id="@+id/scroll_indicators" 70 android:layout_width="match_parent" 71 android:layout_height="match_parent" 72 android:scrollbarStyle="outsideOverlay" 73 android:scrollbars="vertical|horizontal" /> 74 75 <include layout="@layout/conversation_load_spinner"/> 76 77 </FrameLayout> 78