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