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"
     24     android:layout_width="match_parent"
     25     android:layout_height="wrap_content"
     26     android:background="@drawable/listitem_background"
     27     android:orientation="horizontal">
     28 
     29     <LinearLayout android:id="@+id/mms_layout_view_parent"
     30         android:paddingLeft="5dip"
     31         android:layout_width="match_parent"
     32         android:layout_height="wrap_content"
     33         android:layout_weight="1"
     34         android:orientation="vertical" >
     35 
     36         <ViewStub android:id="@+id/mms_layout_view_stub"
     37             android:layout="@layout/mms_layout_view"
     38             android:layout_width="match_parent"
     39             android:layout_height="wrap_content"/>
     40 
     41         <RelativeLayout
     42             android:layout_width="match_parent"
     43             android:layout_height="wrap_content">
     44 
     45             <TextView android:id="@+id/text_view"
     46                 android:autoLink="all"
     47                 android:paddingTop="6dip"
     48                 android:paddingBottom="3dip"
     49                 android:layout_width="match_parent"
     50                 android:layout_height="wrap_content"
     51                 android:linksClickable="false"
     52                 android:textAppearance="?android:attr/textAppearanceSmall"
     53                 android:textColor="#ff000000"
     54                 android:textSize="18sp" />
     55 
     56             <android.widget.QuickContactBadge
     57                 android:layout_marginLeft="0dip"
     58                 android:layout_marginRight="5dip"
     59                 android:layout_marginTop="5dip"
     60                 android:layout_marginBottom="5dip"
     61                 android:id="@+id/avatar"
     62                 style="?android:attr/quickContactBadgeStyleWindowSmall" />
     63 
     64             <View
     65                 android:layout_width="match_parent"
     66                 android:layout_height="0dip"
     67                 android:layout_below="@id/avatar" />
     68 
     69             <LinearLayout android:id="@+id/status_icons"
     70                 android:layout_width="wrap_content"
     71                 android:layout_height="wrap_content"
     72                 android:layout_alignBottom="@id/text_view"
     73                 android:layout_alignParentRight="true"
     74                 android:layout_marginBottom="8dip"
     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:visibility="gone" />
     91 
     92                 <ImageView
     93                     android:id="@+id/details_indicator"
     94                     android:layout_width="wrap_content"
     95                     android:layout_height="wrap_content"
     96                     android:src="@drawable/ic_sms_mms_details"
     97                     android:visibility="gone" />
     98                 </LinearLayout>
     99             </RelativeLayout>
    100         </LinearLayout>
    101 
    102 
    103     <ViewStub android:id="@+id/mms_downloading_view_stub"
    104         android:layout="@layout/mms_downloading_view"
    105         android:layout_gravity="center_vertical"
    106         android:layout_width="wrap_content"
    107         android:layout_height="wrap_content"/>
    108 
    109 </com.android.mms.ui.MessageListItem>
    110