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