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 17 automatically saved by framework.--> 18 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_height="wrap_content" 20 android:layout_width="match_parent"> 21 22 <LinearLayout 23 style="@style/RecipientComposeFieldLayout" 24 android:layout_alignParentTop="true" 25 android:layout_height="wrap_content" 26 android:layout_width="match_parent" 27 android:id="@+id/to_content"> 28 29 <LinearLayout android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:addStatesFromChildren="true" 32 android:gravity="center_vertical" 33 android:layout_gravity="center_vertical"> 34 <TextView style="@style/RecipientComposeHeading" 35 android:text="@string/message_compose_to_hint" 36 android:id="@+id/label"/> 37 38 <com.android.email.activity.ChipsAddressTextView 39 style="@style/EmailRecipientEditTextView" 40 android:id="@+id/to" /> 41 </LinearLayout> 42 43 <View style="@style/RecipientComposeFieldSpacer"/> 44 </LinearLayout> 45 46 <LinearLayout 47 android:layout_below="@id/to_content" 48 android:id="@+id/cc_bcc_container" 49 android:layout_width="match_parent" 50 android:layout_height="wrap_content" 51 android:orientation="vertical" 52 android:visibility="gone"> 53 54 <LinearLayout 55 style="@style/RecipientComposeFieldLayout" 56 android:layout_alignParentTop="true" 57 android:id="@+id/cc_content"> 58 <LinearLayout android:layout_width="match_parent" 59 android:layout_height="wrap_content" 60 android:addStatesFromChildren="true" 61 android:gravity="center_vertical" 62 android:layout_gravity="center_vertical"> 63 <TextView style="@style/RecipientComposeHeading" 64 android:text="@string/message_compose_to_hint" 65 android:id="@+id/label"/> 66 67 <com.android.email.activity.ChipsAddressTextView 68 style="@style/EmailRecipientEditTextView" 69 android:id="@+id/cc" /> 70 </LinearLayout> 71 72 <View style="@style/RecipientComposeFieldSpacer"/> 73 </LinearLayout> 74 75 <LinearLayout 76 style="@style/RecipientComposeFieldLayout" 77 android:layout_alignParentTop="true" 78 android:id="@+id/bcc_content"> 79 <LinearLayout android:layout_width="match_parent" 80 android:layout_height="wrap_content" 81 android:addStatesFromChildren="true" 82 android:gravity="center_vertical" 83 android:layout_gravity="center_vertical"> 84 <TextView style="@style/RecipientComposeHeading" 85 android:text="@string/message_compose_to_hint" 86 android:id="@+id/label"/> 87 88 <com.android.email.activity.ChipsAddressTextView 89 style="@style/EmailRecipientEditTextView" 90 android:id="@+id/bcc" /> 91 </LinearLayout> 92 93 <View style="@style/RecipientComposeFieldSpacer"/> 94 </LinearLayout> 95 96 </LinearLayout> 97 98 </RelativeLayout> 99