summaryrefslogtreecommitdiffstats
path: root/res/layout-sw600dp/compose.xml
blob: cf66774ef2f5d433ff0a3dc7c58587147b3b5a76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2011 Google Inc.
     Licensed to The Android Open Source Project.

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_height="match_parent"
    android:layout_width="match_parent"
    android:background="@color/holo_light_background_color">
    <RelativeLayout
        android:id="@+id/wait"
        android:visibility="gone"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:gravity="center"
        android:layout_gravity="center"/>
    <ScrollView
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        android:fillViewport="true"
        android:id="@+id/compose"
        android:visibility="gone">
        <TableLayout android:id="@+id/content"
            style="@style/ComposeArea"
            android:layout_height="match_parent"
            android:paddingTop="8dip"
            android:background="@android:color/white"
            android:layout_gravity="center_horizontal"
            android:paddingLeft="@dimen/compose_area_left_padding"
            android:animateLayoutChanges="true">
            <TableRow
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingRight="@dimen/compose_area_right_padding">
                <FrameLayout
                    style="@style/FillRowStyle">
                    <include layout="@layout/compose_from"/>
                </FrameLayout>
            </TableRow>
            <TableRow
                android:layout_width="match_parent"
                android:layout_height="wrap_content">
                <LinearLayout android:id="@+id/to_content"
                    style="@style/RecipientComposeFieldLayout"
                    android:layout_width="0dip"
                    android:layout_height="wrap_content"
                    android:layout_weight="1">
                    <LinearLayout android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:addStatesFromChildren="true"
                        android:gravity="center_vertical"
                        android:layout_gravity="center_vertical">

                        <TextView style="@style/RecipientComposeHeading"
                            android:text="@string/to"
                            android:id="@+id/to_label"
                            android:contentDescription="@string/to"/>

                        <com.android.ex.chips.RecipientEditTextView
                            android:id="@+id/to"
                            style="@style/RecipientEditTextViewStyle"
                            android:contentDescription="@string/to"/>
                    </LinearLayout>

                    <View style="@style/RecipientComposeFieldSpacer"/>
                </LinearLayout>
                <RelativeLayout
                    android:layout_width="@dimen/compose_area_right_padding"
                    android:layout_height="wrap_content"
                    android:layout_column="2"
                    android:layout_gravity="bottom|left"
                    android:gravity="bottom|left">
                    <Button android:id="@+id/add_cc_bcc"
                        android:text="@string/add_cc_label"
                        style="@style/ComposeButton"
                        android:layout_marginBottom="6dip"
                        android:paddingLeft="8dip"
                        android:focusable="true"
                        android:clickable="true"/>
                </RelativeLayout>
            </TableRow>
            <TableRow
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingRight="@dimen/compose_area_right_padding">
                <com.android.mail.compose.CcBccView
                    android:id="@+id/cc_bcc_wrapper"
                    style="@style/FillRowStyle"/>
            </TableRow>
            <TableRow
                android:layout_width="match_parent"
                android:layout_height="wrap_content">
                <RelativeLayout
                    android:id="@+id/subject_wrapper"
                    style="@style/ComposeFieldLayout"
                    android:layout_column="1"
                    android:layout_weight="1"
                    android:layout_width="0dip">
                    <!-- Subject: localization cannot control what field pressing tab will bring the user to. This is controlled at runtime.  -->
                    <com.android.mail.compose.EnterSubject android:id="@+id/subject"
                        style="@style/ComposeSubjectView" />
                </RelativeLayout>
                <RelativeLayout android:id="@+id/add_attachment"
                    style="@style/AttachmentButtonStyle"
                    android:layout_column="2"
                    android:clickable="true"
                    android:focusable="true">
                    <ImageView
                        android:contentDescription="@string/attach_file_content_description"
                        android:src="@drawable/ic_attach"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:paddingLeft="4dip"
                        android:clickable="false"/>
                </RelativeLayout>
            </TableRow>
            <TableRow
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingRight="@dimen/compose_area_right_padding">
                <!-- Compose Area -->
                <FrameLayout
                    android:id="@+id/compose_wrapper"
                    style="@style/FillRowStyle">
                    <include layout="@layout/compose_body"/>
                </FrameLayout>
            </TableRow>
            <TableRow
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingRight="@dimen/compose_area_right_padding">
                <!--  Attachments -->
                <com.android.mail.compose.AttachmentsView android:id="@+id/attachments"
                    android:orientation="vertical"
                    android:layout_marginTop="8dip"
                    android:animateLayoutChanges="true"
                    android:paddingTop="2dip"
                    android:paddingBottom="0dip"
                    android:paddingLeft="0dip"
                    android:visibility="gone"
                    style="@style/FillRowStyle">
                    <include layout="@layout/compose_attachments" />
                </com.android.mail.compose.AttachmentsView>
            </TableRow>
            <TableRow
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingRight="@dimen/compose_area_right_padding">
                <!-- Quoted text -->
                <com.android.mail.compose.QuotedTextView android:id="@+id/quoted_text_view"
                    android:layout_height="wrap_content"
                    android:visibility="gone"
                    style="@style/FillRowStyle"/>
            </TableRow>
            <TableRow
                android:layout_width="match_parent"
                android:layout_height="wrap_content">
                <FrameLayout
                    android:id="@+id/composearea_tap_trap_bottom"
                    style="@style/FillRowStyle"
                    android:clickable="true"/>
            </TableRow>

        </TableLayout>

    </ScrollView>
</FrameLayout>