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:background="@color/list_background"
     25     android:orientation="vertical">
     26 
     27     <LinearLayout
     28         android:id="@+id/recipients_subject_linear"
     29         android:layout_width="match_parent"
     30         android:layout_height="wrap_content"
     31         android:paddingTop="5dip"
     32         android:paddingBottom="5dip"
     33         android:paddingLeft="5dip"
     34         android:paddingRight="5dip"
     35         android:orientation="vertical"
     36         android:visibility="gone">
     37 
     38         <ViewStub android:id="@+id/recipients_editor_stub"
     39             android:layout="@layout/recipients_editor"
     40             android:layout_width="match_parent"
     41             android:layout_height="wrap_content"
     42         />
     43 
     44         <EditText android:id="@+id/subject"
     45             android:textAppearance="?android:attr/textAppearanceMediumInverse"
     46             android:textColor="@android:color/black"
     47             android:layout_width="match_parent"
     48             android:layout_height="wrap_content"
     49             android:capitalize="sentences"
     50             android:autoText="true"
     51             android:singleLine="true"
     52             android:hint="@string/subject_hint"
     53             android:visibility="gone"/>
     54     </LinearLayout>
     55 
     56     <LinearLayout
     57         android:layout_width="match_parent"
     58         android:layout_height="match_parent"
     59         android:orientation="vertical"
     60         android:gravity="bottom">
     61 
     62         <view class="com.android.mms.ui.MessageListView"
     63             style="?android:attr/listViewWhiteStyle"
     64             android:id="@+id/history"
     65             android:layout_width="match_parent"
     66             android:layout_height="0dip"
     67             android:layout_weight="1.0"
     68             android:transcriptMode="normal"
     69             android:smoothScrollbar="false"
     70             android:stackFromBottom="true"
     71             android:visibility="gone"
     72             android:fadingEdge="none"
     73             android:layout_marginBottom="1dip"
     74             android:cacheColorHint="@android:color/white"
     75             android:scrollbarAlwaysDrawVerticalTrack="false"
     76             android:scrollbarStyle="insideOverlay"
     77             android:paddingBottom="@dimen/input_text_height_adjusted"
     78         />
     79 
     80         <LinearLayout
     81             android:layout_width="match_parent"
     82             android:layout_height="wrap_content"
     83             android:orientation="vertical">
     84 
     85             <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
     86                 android:id="@+id/attachment_editor_scroll_view"
     87                 android:layout_weight="1.0"
     88                 android:layout_width="match_parent"
     89                 android:layout_height="0dip">
     90 
     91               <view class="com.android.mms.ui.AttachmentEditor"
     92                   android:id="@+id/attachment_editor"
     93                   android:layout_width="match_parent"
     94                   android:layout_height="wrap_content"
     95                   android:orientation="vertical">
     96 
     97                   <ViewStub android:id="@+id/image_attachment_view_stub"
     98                       android:layout="@layout/image_attachment_view"
     99                       android:layout_width="match_parent"
    100                       android:layout_height="wrap_content"/>
    101 
    102                   <ViewStub android:id="@+id/video_attachment_view_stub"
    103                       android:layout="@layout/video_attachment_view"
    104                       android:layout_width="match_parent"
    105                       android:layout_height="wrap_content"/>
    106 
    107                   <ViewStub android:id="@+id/audio_attachment_view_stub"
    108                       android:layout="@layout/audio_attachment_view"
    109                       android:layout_width="match_parent"
    110                       android:layout_height="wrap_content"/>
    111 
    112                   <ViewStub android:id="@+id/slideshow_attachment_view_stub"
    113                       android:layout="@layout/slideshow_attachment_view"
    114                       android:layout_width="match_parent"
    115                       android:layout_height="wrap_content"/>
    116               </view>
    117             </ScrollView>
    118 
    119             <!-- Divider. (Yes, the .9dp is on purpose.) -->
    120             <View android:background="?android:attr/dividerHorizontal"
    121                 android:layout_width="match_parent"
    122                 android:layout_height=".9dp" />
    123 
    124             <LinearLayout
    125                 android:id="@+id/bottom_panel"
    126                 android:orientation="horizontal"
    127                 android:layout_width="match_parent"
    128                 android:layout_height="wrap_content"
    129                 android:background="#fff"
    130                 android:paddingBottom="4dip" >
    131 
    132                 <EditText
    133                     android:textColor="@android:color/black"
    134                     android:id="@+id/embedded_text_editor"
    135                     android:layout_width="0dip"
    136                     android:layout_gravity="bottom"
    137                     android:layout_height="wrap_content"
    138                     android:layout_weight="1.0"
    139                     android:layout_marginLeft="8dip"
    140                     android:autoText="true"
    141                     android:textSize="16sp"
    142                     android:capitalize="sentences"
    143                     android:nextFocusRight="@+id/send_button"
    144                     android:hint="@string/type_to_compose_text_enter_to_send"
    145                     android:minHeight="@dimen/input_text_height"
    146                     android:maxLines="3"
    147                     android:inputType="textShortMessage|textAutoCorrect|textCapSentences|textMultiLine"
    148                     android:imeOptions="actionSend|flagNoEnterAction"
    149                 />
    150 
    151                 <LinearLayout
    152                     android:id="@+id/button_with_counter"
    153                     android:orientation="vertical"
    154                     android:layout_gravity="bottom"
    155                     android:layout_width="wrap_content"
    156                     android:layout_height="wrap_content" >
    157 
    158                     <TextView
    159                         android:id="@+id/text_counter"
    160                         android:layout_width="match_parent"
    161                         android:layout_height="wrap_content"
    162                         android:gravity="center_horizontal|bottom"
    163                         android:textColor="#cc333333"
    164                         android:textSize="12sp"
    165                         android:textStyle="bold"
    166                         android:paddingLeft="3dip"
    167                         android:paddingRight="3dip"
    168                         android:paddingBottom="5dip"
    169                         android:visibility="gone"
    170                     />
    171 
    172                     <TextView
    173                         android:id="@+id/send_button_mms"
    174                         style="?android:attr/borderlessButtonStyle"
    175                         android:drawableBottom="@drawable/ic_send_holo_light"
    176                         android:drawablePadding="0dip"
    177                         android:layout_width="wrap_content"
    178                         android:textSize="11sp"
    179                         android:layout_height="0dip"
    180                         android:layout_weight="1.0"
    181                         android:layout_marginTop="0dip"
    182                         android:layout_marginLeft="4dip"
    183                         android:editable="false"
    184                         android:text="@string/mms"
    185                         android:contentDescription="@string/send"
    186                         android:nextFocusLeft="@+id/embedded_text_editor" />
    187 
    188                     <ImageButton
    189                         android:id="@+id/send_button_sms"
    190                         style="?android:attr/borderlessButtonStyle"
    191                         android:src="@drawable/ic_send_holo_light"
    192                         android:drawablePadding="0dip"
    193                         android:layout_width="wrap_content"
    194                         android:layout_height="0dip"
    195                         android:layout_weight="1.0"
    196                         android:layout_marginLeft="4dip"
    197                         android:contentDescription="@string/send"
    198                         android:nextFocusLeft="@+id/embedded_text_editor" />
    199 
    200                 </LinearLayout>
    201             </LinearLayout>
    202         </LinearLayout>
    203     </LinearLayout>
    204 </LinearLayout>
    205