• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 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<!-- We must have unique ID's for the address fields in order to have the text
17automatically saved by framework.-->
18<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    android:id="@+id/compose_recipients_wrapper"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content">
22
23    <!-- To -->
24
25    <LinearLayout android:id="@+id/to_content"
26        style="@style/RecipientComposeFieldLayout">
27        <LinearLayout android:layout_width="match_parent"
28            android:layout_height="wrap_content"
29            android:addStatesFromChildren="true"
30            android:gravity="center_vertical"
31            android:layout_gravity="center_vertical">
32
33            <TextView style="@style/RecipientComposeHeading"
34                android:text="@string/to"
35                android:id="@+id/to_label"
36                android:contentDescription="@string/to"/>
37
38            <com.android.email.activity.AddressTextView
39                android:id="@+id/to"
40                style="@style/RecipientEditTextViewStyle"/>
41
42        </LinearLayout>
43
44        <View style="@style/RecipientComposeFieldSpacer"/>
45    </LinearLayout>
46
47
48    <RelativeLayout android:layout_height="wrap_content"
49        android:layout_width="match_parent"
50        android:id="@+id/cc_bcc_wrapper"
51        android:layout_below="@id/to_content"
52        android:visibility="gone">
53
54        <LinearLayout style="@style/RecipientComposeFieldLayout"
55            android:id="@+id/cc_content"
56            android:layout_alignParentTop="true">
57
58            <LinearLayout android:layout_width="match_parent"
59                android:layout_height="wrap_content"
60                android:addStatesFromChildren="true"
61                android:gravity="center_vertical">
62
63                <TextView
64                    style="@style/RecipientComposeHeading"
65                    android:text="@string/cc"
66                    android:id="@+id/cc_label"
67                    android:contentDescription="@string/cc"/>
68
69                <com.android.email.activity.AddressTextView
70                    android:id="@+id/cc"
71                    style="@style/RecipientEditTextViewStyle"/>
72            </LinearLayout>
73
74            <View style="@style/RecipientComposeFieldSpacer"/>
75        </LinearLayout>
76
77        <LinearLayout style="@style/RecipientComposeFieldLayout"
78            android:id="@+id/bcc_content"
79            android:layout_below="@id/cc_content">
80
81            <LinearLayout android:layout_width="match_parent"
82                android:layout_height="wrap_content"
83                android:addStatesFromChildren="true"
84                android:gravity="center_vertical">
85
86                <TextView style="@style/RecipientComposeHeading"
87                    android:text="@string/bcc"
88                    android:id="@+id/bcc_label"
89                    android:contentDescription="@string/bcc"/>
90
91                <com.android.email.activity.AddressTextView
92                    android:id="@+id/bcc"
93                    style="@style/RecipientEditTextViewStyle"/>
94
95            </LinearLayout>
96
97            <View style="@style/RecipientComposeFieldSpacer"/>
98        </LinearLayout>
99
100    </RelativeLayout>
101
102    <RelativeLayout style="@style/ComposeFieldLayout"
103                android:layout_below="@id/cc_bcc_wrapper">
104        <!-- Subject: localization cannot control what field pressing tab will bring the user to. This is controlled at runtime.  -->
105        <EditText android:id="@+id/subject"
106            android:inputType="textEmailSubject|textAutoCorrect|textCapSentences|textImeMultiLine|textMultiLine"
107            android:hint="@string/subject_hint"
108            android:textColorHint="@color/compose_label_text"
109            android:imeOptions="actionDone|flagNoExtractUi"
110            style="@style/ComposeEditTextView" />
111    </RelativeLayout>
112</RelativeLayout>