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 android:layout_gravity="center_horizontal" 22 android:paddingLeft="@dimen/compose_wrapper_side_padding" 23 android:paddingRight="@dimen/compose_wrapper_side_padding" 24 style="@style/ComposeAreaWrapper"> 25 26 <include layout="@layout/wait_fragment" /> 27 28 <ScrollView 29 android:id="@+id/compose" 30 android:layout_width="match_parent" 31 android:layout_height="match_parent" 32 android:fillViewport="true" 33 android:orientation="vertical" 34 android:visibility="gone"> 35 36 <!-- Horizontal layout to get side paddings for tablets --> 37 <LinearLayout 38 android:layout_width="match_parent" 39 android:layout_height="match_parent" 40 android:paddingTop="@dimen/compose_wrapper_top_padding"> 41 42 <!-- Start border --> 43 <Space 44 android:layout_width="0dp" 45 android:layout_height="match_parent" 46 android:layout_weight="@integer/compose_padding_weight" /> 47 48 <!-- Main compose content --> 49 <LinearLayout 50 android:id="@+id/content" 51 android:orientation="vertical" 52 style="@style/ComposeArea"> 53 54 <!-- From --> 55 <include layout="@layout/compose_from" /> 56 57 <!-- To/Cc/Bcc --> 58 <include layout="@layout/compose_recipients" /> 59 60 <!-- Subject --> 61 <include layout="@layout/compose_subject" /> 62 63 <!-- Body --> 64 <include layout="@layout/compose_body" /> 65 66 <!-- Attachments --> 67 <com.android.mail.compose.AttachmentsView 68 android:id="@+id/attachments" 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content" 71 android:animateLayoutChanges="true" 72 android:focusable="true" 73 android:orientation="vertical" 74 android:paddingTop="8dip" 75 android:paddingRight="5dip" 76 android:paddingBottom="0dip" 77 android:paddingLeft="5dip" 78 android:visibility="gone"> 79 80 <include layout="@layout/compose_attachments" /> 81 82 </com.android.mail.compose.AttachmentsView> 83 84 <!-- Quoted text --> 85 <com.android.mail.compose.QuotedTextView 86 android:id="@+id/quoted_text_view" 87 android:layout_width="match_parent" 88 android:layout_height="wrap_content" 89 android:visibility="gone" /> 90 91 <View 92 android:id="@+id/composearea_tap_trap_bottom" 93 android:layout_width="match_parent" 94 android:layout_height="match_parent" 95 android:clickable="true" /> 96 97 </LinearLayout> 98 99 <!-- End border --> 100 <Space 101 android:layout_width="0dp" 102 android:layout_height="match_parent" 103 android:layout_weight="@integer/compose_padding_weight" /> 104 105 </LinearLayout> 106 107 </ScrollView> 108 109 </FrameLayout>