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 <com.android.mms.ui.MessageListItem
     22     xmlns:android="http://schemas.android.com/apk/res/android"
     23     android:id="@+id/msg_list_item_send"
     24     android:layout_width="match_parent"
     25     android:layout_height="wrap_content"
     26     android:orientation="horizontal">
     27 
     28     <LinearLayout android:id="@+id/mms_layout_view_parent"
     29         android:layout_width="match_parent"
     30         android:layout_height="wrap_content"
     31         android:layout_weight="1"
     32         android:orientation="vertical" >
     33 
     34         <RelativeLayout
     35             android:layout_width="match_parent"
     36             android:layout_height="wrap_content">
     37 
     38             <view xmlns:android="http://schemas.android.com/apk/res/android"
     39                 class="com.android.mms.ui.QuickContactDivot"
     40                 android:id="@+id/avatar"
     41                 position="left_upper"
     42                 android:layout_alignParentRight="true"
     43                 android:layout_width="@dimen/avatar_width_height"
     44                 android:layout_height="@dimen/avatar_width_height" />
     45 
     46             <LinearLayout
     47                 android:id="@+id/message_block"
     48                 android:minHeight="@dimen/avatar_width_height"
     49                 android:layout_width="0dip"
     50                 android:layout_height="wrap_content"
     51                 android:layout_toLeftOf="@id/avatar"
     52                 android:layout_alignParentLeft="true"
     53                 android:background="@drawable/hairline_right"
     54                 android:orientation="vertical" >
     55 
     56                 <TextView android:id="@+id/text_view"
     57                     android:autoLink="all"
     58                     android:paddingLeft="@dimen/message_item_text_padding_left_right"
     59                     android:paddingRight="@dimen/message_item_text_padding_left_right"
     60                     android:paddingTop="@dimen/message_item_text_padding_top"
     61                     android:layout_width="match_parent"
     62                     android:layout_height="wrap_content"
     63                     android:linksClickable="false"
     64                     android:gravity="right"
     65                     android:textAppearance="?android:attr/textAppearanceSmall"
     66                     android:textColor="#ff000000"
     67                     android:textSize="16sp" />
     68 
     69                 <LinearLayout
     70                     android:layout_width="match_parent"
     71                     android:layout_height="wrap_content"
     72                     android:layout_marginBottom="8dip"
     73                     android:paddingRight="@dimen/message_item_text_padding_left_right"
     74                     android:gravity="right"
     75                     android:orientation="horizontal" >
     76 
     77                     <ImageView
     78                         android:id="@+id/locked_indicator"
     79                         android:layout_width="wrap_content"
     80                         android:layout_height="wrap_content"
     81                         android:src="@drawable/ic_lock_message_sms"
     82                         android:paddingRight="3dip"
     83                         android:visibility="gone" />
     84 
     85                     <ImageView
     86                         android:id="@+id/delivered_indicator"
     87                         android:layout_width="wrap_content"
     88                         android:layout_height="wrap_content"
     89                         android:paddingRight="3dip"
     90                         android:src="@drawable/ic_sms_mms_delivered"
     91                         android:visibility="gone" />
     92 
     93                     <ImageView
     94                         android:id="@+id/details_indicator"
     95                         android:layout_width="wrap_content"
     96                         android:layout_height="wrap_content"
     97                         android:paddingRight="3dip"
     98                         android:src="@drawable/ic_sms_mms_details"
     99                         android:visibility="gone" />
    100 
    101                     <TextView android:id="@+id/date_view"
    102                         android:background="@drawable/listitem_background"
    103                         android:layout_width="wrap_content"
    104                         android:layout_height="wrap_content"
    105                         android:textAppearance="?android:attr/textAppearanceSmall"
    106                         android:textColor="@color/text_hairline" />
    107                 </LinearLayout>
    108 
    109                 <ViewStub android:id="@+id/mms_layout_view_stub"
    110                     android:layout="@layout/mms_layout_view"
    111                     android:layout_width="match_parent"
    112                     android:layout_height="wrap_content"/>
    113             </LinearLayout>
    114         </RelativeLayout>
    115     </LinearLayout>
    116 
    117     <ViewStub android:id="@+id/mms_downloading_view_stub"
    118         android:layout="@layout/mms_downloading_view"
    119         android:layout_gravity="center_vertical"
    120         android:layout_width="wrap_content"
    121         android:layout_height="wrap_content"/>
    122 
    123 </com.android.mms.ui.MessageListItem>
    124