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