blob: de76bdaabe182c83e2776b617690c3313f6c0539 [file] [log] [blame]
Mindy Pereira5eaa2b92011-12-13 11:37:05 -08001<?xml version="1.0" encoding="utf-8"?>
Vikram Aggarwal5e5ac742011-12-19 08:14:16 -08002<!--
3 Copyright (C) 2011 Google Inc.
4 Licensed to The Android Open Source Project.
Mindy Pereira5eaa2b92011-12-13 11:37:05 -08005
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-->
Mindy Pereirab199d172012-08-13 11:04:03 -070018<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
Jin Cao9d358a12014-07-24 12:15:38 -070019 android:layout_width="match_parent"
Mindy Pereira5eaa2b92011-12-13 11:37:05 -080020 android:layout_height="match_parent"
Jin Cao9d358a12014-07-24 12:15:38 -070021 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"
Mindy Pereirab199d172012-08-13 11:04:03 -070028 android:layout_width="match_parent"
Jin Cao9d358a12014-07-24 12:15:38 -070029 android:layout_height="match_parent"
30 android:fillViewport="true"
Mindy Pereirab199d172012-08-13 11:04:03 -070031 android:orientation="vertical"
Jin Cao9d358a12014-07-24 12:15:38 -070032 android:visibility="gone">
Mindy Pereira5eaa2b92011-12-13 11:37:05 -080033
Jin Cao95b8a7b2014-09-02 16:45:42 -070034 <!-- Horizontal layout to get side paddings for tablets -->
Jin Cao9d358a12014-07-24 12:15:38 -070035 <LinearLayout
36 android:layout_width="match_parent"
Jin Cao95b8a7b2014-09-02 16:45:42 -070037 android:layout_height="match_parent"
38 android:paddingTop="@dimen/compose_wrapper_top_padding">
Mindy Pereira5eaa2b92011-12-13 11:37:05 -080039
Jin Cao9d358a12014-07-24 12:15:38 -070040 <!-- Start border -->
41 <Space
42 android:layout_width="0dp"
Mindy Pereirab199d172012-08-13 11:04:03 -070043 android:layout_height="match_parent"
Jin Cao9d358a12014-07-24 12:15:38 -070044 android:layout_weight="@integer/compose_padding_weight" />
Mindy Pereira5eaa2b92011-12-13 11:37:05 -080045
Jin Cao9d358a12014-07-24 12:15:38 -070046 <!-- Main compose content -->
47 <LinearLayout
48 android:id="@+id/content"
49 android:orientation="vertical"
50 style="@style/ComposeArea">
Mindy Pereirab199d172012-08-13 11:04:03 -070051
Jin Cao9d358a12014-07-24 12:15:38 -070052 <!-- From -->
53 <include layout="@layout/compose_from" />
Mindy Pereirab199d172012-08-13 11:04:03 -070054
Jin Cao9d358a12014-07-24 12:15:38 -070055 <!-- To/Cc/Bcc -->
56 <include layout="@layout/compose_recipients" />
Mindy Pereirab199d172012-08-13 11:04:03 -070057
Jin Cao9d358a12014-07-24 12:15:38 -070058 <!-- Subject -->
59 <include layout="@layout/compose_subject" />
Mindy Pereirab199d172012-08-13 11:04:03 -070060
mindyp40882432012-09-06 11:07:40 -070061 <!-- Body -->
Jin Cao9d358a12014-07-24 12:15:38 -070062 <include layout="@layout/compose_body" />
mindyp40882432012-09-06 11:07:40 -070063
Mindy Pereirab199d172012-08-13 11:04:03 -070064 <!-- Attachments -->
Jin Cao9d358a12014-07-24 12:15:38 -070065 <com.android.mail.compose.AttachmentsView
66 android:id="@+id/attachments"
Mindy Pereirab199d172012-08-13 11:04:03 -070067 android:layout_width="match_parent"
Jin Cao9d358a12014-07-24 12:15:38 -070068 android:layout_height="wrap_content"
Mindy Pereirab199d172012-08-13 11:04:03 -070069 android:animateLayoutChanges="true"
Jin Cao9d358a12014-07-24 12:15:38 -070070 android:focusable="true"
71 android:orientation="vertical"
Mindy Pereirab199d172012-08-13 11:04:03 -070072 android:paddingTop="8dip"
73 android:paddingRight="5dip"
74 android:paddingBottom="0dip"
75 android:paddingLeft="5dip"
Jin Cao9d358a12014-07-24 12:15:38 -070076 android:visibility="gone">
77
Mindy Pereirab199d172012-08-13 11:04:03 -070078 <include layout="@layout/compose_attachments" />
Jin Cao9d358a12014-07-24 12:15:38 -070079
Mindy Pereirab199d172012-08-13 11:04:03 -070080 </com.android.mail.compose.AttachmentsView>
Mindy Pereirab199d172012-08-13 11:04:03 -070081
82 <!-- Quoted text -->
Jin Cao9d358a12014-07-24 12:15:38 -070083 <com.android.mail.compose.QuotedTextView
84 android:id="@+id/quoted_text_view"
Mindy Pereirab199d172012-08-13 11:04:03 -070085 android:layout_width="match_parent"
Jin Cao9d358a12014-07-24 12:15:38 -070086 android:layout_height="wrap_content"
Mindy Pereirab199d172012-08-13 11:04:03 -070087 android:visibility="gone" />
88
Jin Cao9d358a12014-07-24 12:15:38 -070089 <View
90 android:id="@+id/composearea_tap_trap_bottom"
Mindy Pereirab199d172012-08-13 11:04:03 -070091 android:layout_width="match_parent"
92 android:layout_height="match_parent"
Jin Cao9d358a12014-07-24 12:15:38 -070093 android:background="@color/compose_background_color"
94 android:clickable="true" />
Mindy Pereira5eaa2b92011-12-13 11:37:05 -080095
96 </LinearLayout>
97
Jin Cao9d358a12014-07-24 12:15:38 -070098 <!-- End border -->
99 <Space
100 android:layout_width="0dp"
101 android:layout_height="match_parent"
102 android:layout_weight="@integer/compose_padding_weight" />
Mindy Pereira5eaa2b92011-12-13 11:37:05 -0800103
Jin Cao9d358a12014-07-24 12:15:38 -0700104 </LinearLayout>
105
106 </ScrollView>
107
Mindy Pereirab199d172012-08-13 11:04:03 -0700108</FrameLayout>