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 android:layout_marginLeft="6dip" 22 android:layout_marginRight="6dip"> 23 24 <RelativeLayout 25 style="@style/ComposeFieldLinearLayout" 26 android:layout_alignParentTop="true" 27 android:layout_height="wrap_content" 28 android:layout_width="match_parent" 29 android:id="@+id/to_content"> 30 31 <TextView style="@style/ComposeHeading" 32 android:id="@+id/label"/> 33 34 <com.android.email.activity.AddressTextView 35 android:textAppearance="?android:attr/textAppearanceMedium" 36 android:textColor="?android:attr/textColorSecondary" 37 android:inputType="textEmailAddress|textMultiLine" 38 android:imeOptions="actionNext" 39 android:layout_weight="1" 40 android:layout_toRightOf="@id/label" 41 android:id="@+id/to" /> 42 43 </RelativeLayout> 44 <LinearLayout 45 android:layout_below="@id/to_content" 46 android:id="@+id/cc_bcc_container" 47 android:layout_width="match_parent" 48 android:layout_height="wrap_content" 49 android:orientation="vertical" 50 android:visibility="gone"> 51 52 <RelativeLayout 53 style="@style/ComposeFieldLinearLayout" 54 android:layout_alignParentTop="true" 55 android:id="@+id/cc_content"> 56 57 <TextView style="@style/ComposeHeading" 58 android:id="@+id/label"/> 59 60 <com.android.email.activity.AddressTextView 61 android:textAppearance="?android:attr/textAppearanceMedium" 62 android:textColor="?android:attr/textColorSecondary" 63 android:inputType="textEmailAddress|textMultiLine" 64 android:imeOptions="actionNext" 65 android:layout_weight="1" 66 android:layout_toRightOf="@id/label" 67 android:id="@+id/cc" /> 68 69 </RelativeLayout> 70 71 <RelativeLayout 72 style="@style/ComposeFieldLinearLayout" 73 android:layout_alignParentTop="true" 74 android:id="@+id/bcc_content"> 75 76 <TextView style="@style/ComposeHeading" 77 android:id="@+id/label"/> 78 79 <com.android.email.activity.AddressTextView 80 android:textAppearance="?android:attr/textAppearanceMedium" 81 android:textColor="?android:attr/textColorSecondary" 82 android:inputType="textEmailAddress|textMultiLine" 83 android:imeOptions="actionNext" 84 android:layout_weight="1" 85 android:layout_toRightOf="@id/label" 86 android:id="@+id/bcc" /> 87 88 </RelativeLayout> 89 90 </LinearLayout> 91 92 </RelativeLayout>