Home | History | Annotate | Download | only in layout-sw600dp
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2011 Google Inc.
      4      Licensed to The Android Open Source Project.
      5 
      6      Licensed under the Apache License, Version 2.0 (the "License");
      7      you may not use this file except in compliance with the License.
      8      You may obtain a copy of the License at
      9 
     10           http://www.apache.org/licenses/LICENSE-2.0
     11 
     12      Unless required by applicable law or agreed to in writing, software
     13      distributed under the License is distributed on an "AS IS" BASIS,
     14      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15      See the License for the specific language governing permissions and
     16      limitations under the License.
     17 -->
     18 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_height="match_parent"
     20     android:layout_width="match_parent"
     21     android:background="@color/holo_light_background_color">
     22     <RelativeLayout
     23         android:id="@+id/wait"
     24         android:visibility="gone"
     25         android:layout_width="match_parent"
     26         android:layout_height="match_parent"
     27         android:gravity="center"
     28         android:layout_gravity="center"/>
     29     <ScrollView
     30         android:layout_height="match_parent"
     31         android:layout_width="match_parent"
     32         android:fillViewport="true"
     33         android:id="@+id/compose"
     34         android:visibility="gone">
     35         <TableLayout android:id="@+id/content"
     36             style="@style/ComposeArea"
     37             android:layout_height="match_parent"
     38             android:paddingTop="8dip"
     39             android:background="@android:color/white"
     40             android:layout_gravity="center_horizontal"
     41             android:paddingLeft="@dimen/compose_area_left_padding"
     42             android:animateLayoutChanges="true">
     43             <TableRow
     44                 android:layout_width="match_parent"
     45                 android:layout_height="wrap_content"
     46                 android:paddingRight="@dimen/compose_area_right_padding">
     47                 <FrameLayout
     48                     style="@style/FillRowStyle">
     49                     <include layout="@layout/compose_from"/>
     50                 </FrameLayout>
     51             </TableRow>
     52             <TableRow
     53                 android:layout_width="match_parent"
     54                 android:layout_height="wrap_content">
     55                 <LinearLayout android:id="@+id/to_content"
     56                     style="@style/RecipientComposeFieldLayout"
     57                     android:layout_width="0dip"
     58                     android:layout_height="wrap_content"
     59                     android:layout_weight="1">
     60                     <LinearLayout android:layout_width="match_parent"
     61                         android:layout_height="wrap_content"
     62                         android:addStatesFromChildren="true"
     63                         android:gravity="center_vertical"
     64                         android:layout_gravity="center_vertical">
     65 
     66                         <TextView style="@style/RecipientComposeHeading"
     67                             android:text="@string/to"
     68                             android:id="@+id/to_label"
     69                             android:contentDescription="@string/to"/>
     70 
     71                         <com.android.ex.chips.RecipientEditTextView
     72                             android:id="@+id/to"
     73                             style="@style/RecipientEditTextViewStyle"
     74                             android:contentDescription="@string/to"/>
     75                     </LinearLayout>
     76 
     77                     <View style="@style/RecipientComposeFieldSpacer"/>
     78                 </LinearLayout>
     79                 <RelativeLayout
     80                     android:layout_width="@dimen/compose_area_right_padding"
     81                     android:layout_height="wrap_content"
     82                     android:layout_column="2"
     83                     android:layout_gravity="bottom|left"
     84                     android:gravity="bottom|left">
     85                     <Button android:id="@+id/add_cc_bcc"
     86                         android:text="@string/add_cc_label"
     87                         style="@style/ComposeButton"
     88                         android:layout_marginBottom="6dip"
     89                         android:paddingLeft="8dip"
     90                         android:focusable="true"
     91                         android:clickable="true"/>
     92                 </RelativeLayout>
     93             </TableRow>
     94             <TableRow
     95                 android:layout_width="match_parent"
     96                 android:layout_height="wrap_content"
     97                 android:paddingRight="@dimen/compose_area_right_padding">
     98                 <com.android.mail.compose.CcBccView
     99                     android:id="@+id/cc_bcc_wrapper"
    100                     style="@style/FillRowStyle"/>
    101             </TableRow>
    102             <TableRow
    103                 android:layout_width="match_parent"
    104                 android:layout_height="wrap_content">
    105                 <RelativeLayout
    106                     android:id="@+id/subject_wrapper"
    107                     style="@style/ComposeFieldLayout"
    108                     android:layout_column="1"
    109                     android:layout_weight="1"
    110                     android:layout_width="0dip">
    111                     <!-- Subject: localization cannot control what field pressing tab will bring the user to. This is controlled at runtime.  -->
    112                     <com.android.mail.compose.EnterSubject android:id="@+id/subject"
    113                         style="@style/ComposeSubjectView" />
    114                 </RelativeLayout>
    115                 <RelativeLayout android:id="@+id/add_photo_attachment"
    116                     style="@style/AttachmentButtonStyle"
    117                     android:layout_column="2"
    118                     android:clickable="true"
    119                     android:focusable="true">
    120                     <ImageView
    121                         android:text="@string/add_file_attachment"
    122                         android:src="@drawable/ic_attach_image_holo_light"
    123                         android:layout_width="wrap_content"
    124                         android:layout_height="wrap_content"
    125                         android:paddingLeft="4dip"
    126                         android:clickable="false"/>
    127                 </RelativeLayout>
    128             </TableRow>
    129             <TableRow
    130                 android:layout_width="match_parent"
    131                 android:layout_height="wrap_content"
    132                 android:paddingRight="@dimen/compose_area_right_padding">
    133                 <!-- Compose Area -->
    134                 <FrameLayout
    135                     android:id="@+id/compose_wrapper"
    136                     style="@style/FillRowStyle">
    137                     <include layout="@layout/compose_body"/>
    138                 </FrameLayout>
    139             </TableRow>
    140             <TableRow
    141                 android:layout_width="match_parent"
    142                 android:layout_height="wrap_content"
    143                 android:paddingRight="@dimen/compose_area_right_padding">
    144                 <!--  Attachments -->
    145                 <com.android.mail.compose.AttachmentsView android:id="@+id/attachments"
    146                     android:orientation="vertical"
    147                     android:layout_marginTop="8dip"
    148                     android:animateLayoutChanges="true"
    149                     android:paddingTop="2dip"
    150                     android:paddingBottom="0dip"
    151                     android:paddingLeft="0dip"
    152                     android:visibility="gone"
    153                     style="@style/FillRowStyle">
    154                     <include layout="@layout/compose_attachments" />
    155                 </com.android.mail.compose.AttachmentsView>
    156             </TableRow>
    157             <TableRow
    158                 android:layout_width="match_parent"
    159                 android:layout_height="wrap_content"
    160                 android:paddingRight="@dimen/compose_area_right_padding">
    161                 <!-- Quoted text -->
    162                 <com.android.mail.compose.QuotedTextView android:id="@+id/quoted_text_view"
    163                     android:layout_height="wrap_content"
    164                     android:visibility="gone"
    165                     style="@style/FillRowStyle"/>
    166             </TableRow>
    167             <TableRow
    168                 android:layout_width="match_parent"
    169                 android:layout_height="wrap_content">
    170                 <FrameLayout
    171                     android:id="@+id/composearea_tap_trap_bottom"
    172                     style="@style/FillRowStyle"
    173                     android:clickable="true"/>
    174             </TableRow>
    175 
    176         </TableLayout>
    177 
    178     </ScrollView>
    179 </FrameLayout>
    180