Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2008 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 
     17 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:layout_height="match_parent" android:layout_width="match_parent"
     19     android:orientation="vertical" android:background="#ffffff">
     20     <ScrollView android:layout_width="match_parent"
     21         android:layout_height="0dip" android:layout_weight="1"
     22         android:scrollbarStyle="outsideInset"
     23         android:fillViewport="true">
     24         <LinearLayout android:orientation="vertical"
     25             android:layout_width="match_parent" android:layout_height="wrap_content">
     26             <LinearLayout android:orientation="vertical"
     27                 android:layout_width="match_parent"
     28                 android:layout_height="wrap_content" android:background="#ededed">
     29                 <com.android.email.activity.AddressTextView
     30                     android:id="@+id/to" android:layout_width="match_parent"
     31                     android:layout_height="wrap_content"
     32                     android:textAppearance="?android:attr/textAppearanceMedium"
     33                     android:textColor="?android:attr/textColorSecondaryInverse"
     34                     android:layout_marginLeft="6dip"
     35                     android:layout_marginRight="6dip"
     36                     android:inputType="textEmailAddress|textMultiLine"
     37                     android:imeOptions="actionNext"
     38                     android:hint="@string/message_compose_to_hint" />
     39                 <com.android.email.activity.AddressTextView
     40                     android:id="@+id/cc" android:layout_width="match_parent"
     41                     android:layout_height="wrap_content"
     42                     android:textAppearance="?android:attr/textAppearanceMedium"
     43                     android:textColor="?android:attr/textColorSecondaryInverse"
     44                     android:layout_marginLeft="6dip"
     45                     android:layout_marginRight="6dip"
     46                     android:inputType="textEmailAddress|textMultiLine"
     47                     android:imeOptions="actionNext"
     48                     android:hint="@string/message_compose_cc_hint"
     49                     android:visibility="gone" />
     50                 <com.android.email.activity.AddressTextView
     51                     android:id="@+id/bcc" android:layout_width="match_parent"
     52                     android:layout_height="wrap_content"
     53                     android:textAppearance="?android:attr/textAppearanceMedium"
     54                     android:textColor="?android:attr/textColorSecondaryInverse"
     55                     android:layout_marginLeft="6dip"
     56                     android:layout_marginRight="6dip"
     57                     android:inputType="textEmailAddress|textMultiLine"
     58                     android:imeOptions="actionNext"
     59                     android:hint="@string/message_compose_bcc_hint"
     60                     android:visibility="gone" />
     61                 <EditText android:id="@+id/subject"
     62                     android:layout_width="match_parent"
     63                     android:textAppearance="?android:attr/textAppearanceMedium"
     64                     android:layout_height="wrap_content"
     65                     android:textColor="?android:attr/textColorSecondaryInverse"
     66                     android:layout_marginLeft="6dip"
     67                     android:layout_marginRight="6dip"
     68                     android:hint="@string/message_compose_subject_hint"
     69                     android:inputType="textEmailSubject|textAutoCorrect|textCapSentences|textImeMultiLine" 
     70                     android:imeOptions="actionNext"
     71                     />
     72                 <!--
     73                     Empty container for storing attachments. We'll stick
     74                     instances of message_compose_attachment.xml in here.
     75                 -->
     76                 <LinearLayout android:id="@+id/attachments"
     77                     android:layout_width="match_parent"
     78                     android:layout_height="wrap_content"
     79                     android:orientation="vertical" />
     80                 <View android:layout_width="match_parent"
     81                     android:layout_height="1dip"
     82                     android:background="@drawable/divider_horizontal_email" />
     83             </LinearLayout>
     84             <EditText android:id="@+id/message_content"
     85                 android:textColor="?android:attr/textColorSecondaryInverse"
     86                 android:layout_width="match_parent"
     87                 android:layout_height="wrap_content"
     88                 android:layout_weight="1.0"
     89                 android:textAppearance="?android:attr/textAppearanceMedium"
     90                 android:gravity="left|top"
     91                 android:minLines="3"
     92                 android:hint="@string/message_compose_body_hint"
     93                 android:inputType="textMultiLine|textAutoCorrect|textCapSentences"
     94                 android:imeOptions="actionDone|flagNoEnterAction"
     95                 />
     96         <!--  quoted text bar -->
     97             <RelativeLayout android:id="@+id/quoted_text_bar"
     98                 android:layout_width="match_parent"
     99                 android:layout_height="45dip" android:background="@drawable/email_quoted_bar">
    100                 <TextView android:layout_width="wrap_content"
    101                     android:layout_height="wrap_content"
    102                     android:textAppearance="?android:attr/textAppearanceMedium"
    103                     android:textColor="?android:attr/textColorSecondaryInverse"
    104                     android:text="@string/message_compose_quoted_text_label"
    105                     android:layout_alignParentLeft="true"
    106                     android:layout_centerVertical="true" />
    107                 <ImageButton android:id="@+id/quoted_text_delete"
    108                     android:layout_width="wrap_content"
    109                     android:layout_height="wrap_content"
    110                     android:background="@android:drawable/btn_dialog"
    111                     android:layout_centerVertical="true"
    112                     android:layout_alignParentRight="true" />
    113             </RelativeLayout>
    114             <WebView android:id="@+id/quoted_text"
    115                 android:layout_height="wrap_content"
    116                 android:layout_width="match_parent" />
    117         </LinearLayout>
    118     </ScrollView>
    119     
    120     <LinearLayout
    121         android:orientation="horizontal"
    122         android:layout_width="match_parent"
    123         android:layout_height="wrap_content"
    124         android:paddingTop="5dip"
    125         android:paddingLeft="4dip"
    126         android:paddingRight="4dip"
    127         android:paddingBottom="1dip"   
    128         android:background="@android:drawable/bottom_bar" >
    129         <Button
    130             android:id="@+id/send"
    131             android:text="@string/send_action"
    132             android:layout_height="match_parent"
    133             android:layout_width="0dip"
    134             android:layout_weight="1" />
    135         <Button
    136             android:id="@+id/save"
    137             android:text="@string/save_draft_action"
    138             android:layout_height="match_parent"
    139             android:layout_width="0dip"
    140             android:layout_weight="1" />
    141         <Button
    142             android:id="@+id/discard"
    143             android:text="@string/discard_action"
    144             android:layout_height="match_parent"
    145             android:layout_width="0dip"
    146             android:layout_weight="1" />
    147     </LinearLayout>
    148 </LinearLayout>
    149