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_recv"
     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="right_upper"
     42                 android:layout_alignParentLeft="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="wrap_content"
     50                 android:layout_height="wrap_content"
     51                 android:layout_toRightOf="@id/avatar"
     52                 android:layout_alignParentRight="true"
     53                 android:background="@drawable/hairline_left"
     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="wrap_content"
     62                     android:layout_height="wrap_content"
     63                     android:linksClickable="false"
     64                     android:textAppearance="?android:attr/textAppearanceSmall"
     65                     android:textColor="#ff000000"
     66                     android:textSize="16sp" />
     67 
     68                 <LinearLayout
     69                     android:layout_width="wrap_content"
     70                     android:layout_height="wrap_content"
     71                     android:layout_marginBottom="8dip"
     72                     android:paddingLeft="@dimen/message_item_text_padding_left_right"
     73                     android:orientation="horizontal" >
     74 
     75                     <TextView android:id="@+id/date_view"
     76                         android:background="@drawable/listitem_background"
     77                         android:layout_width="wrap_content"
     78                         android:layout_height="wrap_content"
     79                         android:paddingRight="3dip"
     80                         android:textAppearance="?android:attr/textAppearanceSmall"
     81                         android:textColor="@color/text_hairline" />
     82 
     83                     <ImageView
     84                         android:id="@+id/locked_indicator"
     85                         android:layout_width="wrap_content"
     86                         android:layout_height="wrap_content"
     87                         android:src="@drawable/ic_lock_message_sms"
     88                         android:paddingRight="3dip"
     89                         android:visibility="gone" />
     90 
     91                     <ImageView
     92                         android:id="@+id/delivered_indicator"
     93                         android:layout_width="wrap_content"
     94                         android:layout_height="wrap_content"
     95                         android:src="@drawable/ic_sms_mms_delivered"
     96                         android:paddingRight="3dip"
     97                         android:visibility="gone" />
     98 
     99                     <ImageView
    100                         android:id="@+id/details_indicator"
    101                         android:layout_width="wrap_content"
    102                         android:layout_height="wrap_content"
    103                         android:src="@drawable/ic_sms_mms_details"
    104                         android:visibility="gone" />
    105                 </LinearLayout>
    106 
    107                 <ViewStub android:id="@+id/mms_layout_view_stub"
    108                     android:layout="@layout/mms_layout_view"
    109                     android:layout_width="match_parent"
    110                     android:layout_height="wrap_content"/>
    111             </LinearLayout>
    112         </RelativeLayout>
    113     </LinearLayout>
    114 
    115     <ViewStub android:id="@+id/mms_downloading_view_stub"
    116         android:layout="@layout/mms_downloading_view"
    117         android:layout_gravity="center_vertical"
    118         android:layout_width="wrap_content"
    119         android:layout_height="wrap_content"/>
    120 
    121 </com.android.mms.ui.MessageListItem>
    122