Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /*
      4  * Copyright (C) 2008 Esmertec AG.
      5  * Copyright (C) 2008 The Android Open Source Project
      6  *
      7  * Licensed under the Apache License, Version 2.0 (the "License");
      8  * you may not use this file except in compliance with the License.
      9  * You may obtain a copy of the License at
     10  *
     11  *      http://www.apache.org/licenses/LICENSE-2.0
     12  *
     13  * Unless required by applicable law or agreed to in writing, software
     14  * distributed under the License is distributed on an "AS IS" BASIS,
     15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     16  * See the License for the specific language governing permissions and
     17  * limitations under the License.
     18  */
     19 -->
     20 
     21 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     22     android:layout_width="match_parent"
     23     android:layout_height="match_parent"
     24     android:orientation="vertical">
     25 
     26     <LinearLayout
     27         android:id="@+id/recipients_subject_linear"
     28         android:layout_width="match_parent"
     29         android:layout_height="wrap_content"
     30         android:paddingTop="5dip"
     31         android:paddingBottom="5dip"
     32         android:paddingLeft="5dip"
     33         android:paddingRight="5dip"
     34         android:orientation="vertical"
     35         android:visibility="gone">
     36 
     37         <ViewStub android:id="@+id/recipients_editor_stub"
     38             android:layout="@layout/recipients_editor"
     39             android:layout_width="match_parent"
     40             android:layout_height="wrap_content"
     41         />
     42 
     43         <EditText android:id="@+id/subject"
     44             android:textAppearance="?android:attr/textAppearanceMediumInverse"
     45             android:textColor="@android:color/black"
     46             android:layout_width="match_parent"
     47             android:layout_height="wrap_content"
     48             android:capitalize="sentences"
     49             android:autoText="true"
     50             android:singleLine="true"
     51             android:hint="@string/subject_hint"
     52             android:visibility="gone"/>
     53     </LinearLayout>
     54 
     55     <LinearLayout
     56         android:layout_width="match_parent"
     57         android:layout_height="match_parent"
     58         android:orientation="vertical"
     59         android:gravity="bottom">
     60 
     61         <view class="com.android.mms.ui.MessageListView"
     62             style="?android:attr/listViewWhiteStyle"
     63             android:id="@+id/history"
     64             android:layout_width="match_parent"
     65             android:layout_height="0dip"
     66             android:layout_weight="1.0"
     67             android:transcriptMode="disabled"
     68             android:smoothScrollbar="false"
     69             android:stackFromBottom="true"
     70             android:visibility="gone"
     71             android:fadingEdge="none"
     72             android:layout_marginBottom="1dip"
     73             android:cacheColorHint="@android:color/white"
     74             android:scrollbarAlwaysDrawVerticalTrack="false"
     75             android:scrollbarStyle="insideOverlay"
     76             android:paddingBottom="@dimen/input_text_height_adjusted"
     77         />
     78 
     79         <LinearLayout
     80             android:layout_width="match_parent"
     81             android:layout_height="wrap_content"
     82             android:orientation="vertical">
     83 
     84             <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
     85                 android:id="@+id/attachment_editor_scroll_view"
     86                 android:layout_weight="1.0"
     87                 android:layout_width="match_parent"
     88                 android:layout_height="0dip">
     89 
     90               <view class="com.android.mms.ui.AttachmentEditor"
     91                   android:id="@+id/attachment_editor"
     92                   android:layout_width="match_parent"
     93                   android:layout_height="wrap_content"
     94                   android:orientation="vertical">
     95 
     96                   <ViewStub android:id="@+id/image_attachment_view_stub"
     97                       android:layout="@layout/image_attachment_view"
     98                       android:layout_width="match_parent"
     99                       android:layout_height="wrap_content"/>
    100 
    101                   <ViewStub android:id="@+id/video_attachment_view_stub"
    102                       android:layout="@layout/video_attachment_view"
    103                       android:layout_width="match_parent"
    104                       android:layout_height="wrap_content"/>
    105 
    106                   <ViewStub android:id="@+id/audio_attachment_view_stub"
    107                       android:layout="@layout/audio_attachment_view"
    108                       android:layout_width="match_parent"
    109                       android:layout_height="wrap_content"/>
    110 
    111                   <ViewStub android:id="@+id/slideshow_attachment_view_stub"
    112                       android:layout="@layout/slideshow_attachment_view"
    113                       android:layout_width="match_parent"
    114                       android:layout_height="wrap_content"/>
    115               </view>
    116             </ScrollView>
    117 
    118             <!-- Divider -->
    119             <View android:background="#eeeeee"
    120                 android:layout_width="match_parent"
    121                 android:layout_height="1dp" />
    122 
    123             <LinearLayout
    124                 android:id="@+id/bottom_panel"
    125                 android:orientation="horizontal"
    126                 android:layout_width="match_parent"
    127                 android:layout_height="wrap_content"
    128                 android:background="#fff" >
    129 
    130                 <EditText
    131                     android:textColor="@android:color/black"
    132                     android:id="@+id/embedded_text_editor"
    133                     android:layout_width="0dip"
    134                     android:layout_gravity="bottom"
    135                     android:layout_height="wrap_content"
    136                     android:layout_weight="1.0"
    137                     android:layout_marginLeft="8dip"
    138                     android:autoText="true"
    139                     android:textSize="16sp"
    140                     android:capitalize="sentences"
    141                     android:nextFocusRight="@+id/send_button"
    142                     android:hint="@string/type_to_compose_text_enter_to_send"
    143                     android:minHeight="@dimen/input_text_height"
    144                     android:maxLines="3"
    145                     android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
    146                     android:imeOptions="actionSend|flagNoEnterAction"
    147                     android:maxLength="2000"
    148                 />
    149 
    150                 <LinearLayout
    151                     android:id="@+id/button_with_counter"
    152                     android:orientation="vertical"
    153                     android:layout_gravity="bottom"
    154                     android:layout_width="wrap_content"
    155                     android:layout_height="wrap_content" >
    156 
    157                     <TextView
    158                         android:id="@+id/text_counter"
    159                         android:layout_width="match_parent"
    160                         android:layout_height="wrap_content"
    161                         android:gravity="center_horizontal|bottom"
    162                         android:textColor="#cc333333"
    163                         android:textSize="12sp"
    164                         android:textStyle="bold"
    165                         android:paddingLeft="3dip"
    166                         android:paddingRight="3dip"
    167                         android:paddingBottom="5dip"
    168                         android:visibility="gone"
    169                     />
    170 
    171                     <TextView
    172                         android:id="@+id/send_button_mms"
    173                         style="?android:attr/borderlessButtonStyle"
    174                         android:drawableBottom="@drawable/send_button_selector"
    175                         android:drawablePadding="0dip"
    176                         android:layout_width="wrap_content"
    177                         android:textSize="11sp"
    178                         android:layout_height="0dip"
    179                         android:layout_weight="1.0"
    180                         android:layout_marginTop="0dip"
    181                         android:layout_marginLeft="4dip"
    182                         android:editable="false"
    183                         android:text="@string/mms"
    184                         android:contentDescription="@string/send_mms"
    185                         android:nextFocusLeft="@+id/embedded_text_editor" />
    186 
    187                     <ImageButton
    188                         android:id="@+id/send_button_sms"
    189                         style="?android:attr/borderlessButtonStyle"
    190                         android:src="@drawable/send_button_selector"
    191                         android:drawablePadding="0dip"
    192                         android:layout_width="wrap_content"
    193                         android:layout_height="0dip"
    194                         android:layout_weight="1.0"
    195                         android:layout_marginLeft="4dip"
    196                         android:contentDescription="@string/send"
    197                         android:nextFocusLeft="@+id/embedded_text_editor" />
    198 
    199                 </LinearLayout>
    200             </LinearLayout>
    201         </LinearLayout>
    202     </LinearLayout>
    203 </LinearLayout>
    204