• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
17    android:layout_height="match_parent"
18    android:layout_width="match_parent"
19    android:fillViewport="true">
20
21    <LinearLayout
22      android:id="@+id/compose_scrollview"
23      android:orientation="vertical"
24      android:layout_width="@dimen/compose_scrollview_width"
25      android:layout_height="match_parent"
26      android:paddingTop="8dip"
27      android:background="@android:color/white"
28      android:layout_gravity="center_horizontal">
29
30            <LinearLayout
31                android:layout_width="match_parent"
32                android:layout_height="match_parent"
33                android:orientation="vertical"
34                android:paddingLeft="@dimen/compose_area_left_padding">
35
36                <LinearLayout android:id="@+id/content"
37                    android:orientation="horizontal"
38                    android:layout_width="match_parent"
39                    android:layout_height="wrap_content">
40
41                    <!--  For the to, cc, bcc, and subject -->
42                    <LinearLayout android:id="@+id/wrapper"
43                        android:orientation="vertical"
44                        android:layout_width="wrap_content"
45                        android:layout_weight="1"
46                        android:layout_height="wrap_content">
47
48                        <include layout="@layout/compose_from"/>
49
50                        <include layout="@layout/compose_area_recipients"/>
51
52                    </LinearLayout>
53
54                    <include layout="@layout/compose_area_buttons"/>
55
56                </LinearLayout>
57
58                <!--  Attachments -->
59                <LinearLayout android:id="@+id/attachment_container"
60                    android:layout_width="match_parent"
61                    android:layout_height="wrap_content"
62                    android:layout_marginTop="8dip"
63                    android:orientation="vertical"
64                    android:visibility="gone"
65                    android:layout_marginRight="@dimen/compose_area_right_padding"
66                >
67                    <!--
68                        Empty container for storing attachments. We'll stick
69                        instances of message_compose_attachment.xml in here.
70                    -->
71                    <LinearLayout android:id="@+id/attachments"
72                        android:layout_width="match_parent"
73                        android:layout_height="wrap_content"
74                        android:orientation="vertical"
75                        />
76                </LinearLayout>
77
78                <!-- Compose Area -->
79                <FrameLayout android:layout_width="match_parent"
80                    android:layout_height="wrap_content"
81                    android:layout_marginRight="@dimen/compose_area_right_padding">
82
83                    <include layout="@layout/compose_body"/>
84
85                </FrameLayout>
86
87                <RelativeLayout android:layout_width="match_parent"
88                    android:layout_height="wrap_content"
89                    android:layout_marginRight="@dimen/compose_area_right_padding">
90                    <include layout="@layout/quoted_text"/>
91                </RelativeLayout>
92                <FrameLayout
93                  android:id="@+id/composearea_tap_trap_bottom"
94                  android:layout_weight="1"
95                  android:layout_height="0dip"
96                  android:layout_width="match_parent"
97                  android:clickable="true"/>
98
99            </LinearLayout>
100    </LinearLayout>
101</ScrollView>