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.SlideListItemView 22 xmlns:android="http://schemas.android.com/apk/res/android" 23 android:layout_width="match_parent" 24 android:layout_height="?android:attr/listPreferredItemHeight" 25 android:orientation="horizontal"> 26 27 <ImageView android:id="@+id/image_preview" 28 android:layout_width="60dip" 29 android:layout_height="60dip" 30 android:paddingLeft="2dip" 31 android:scaleType="fitCenter" 32 android:src="@drawable/ic_attach_slideshow_holo_light" /> 33 34 <LinearLayout 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content" 37 android:layout_gravity="center_vertical" 38 android:orientation="vertical" > 39 40 <TextView android:id="@+id/slide_number_text" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:textStyle="bold" 44 android:textAppearance="?android:attr/textAppearanceLarge" 45 android:paddingLeft="5dip"/> 46 47 <LinearLayout 48 android:layout_width="match_parent" 49 android:layout_height="wrap_content" 50 android:orientation="horizontal" > 51 52 <TextView android:id="@+id/text_preview" 53 android:layout_width="wrap_content" 54 android:layout_height="wrap_content" 55 android:paddingLeft="5dip" 56 android:paddingRight="5dip" 57 android:visibility="gone" 58 android:textAppearance="?android:attr/textAppearanceMedium" 59 android:textColor="?android:attr/textColorSecondary" 60 android:layout_weight=".4" 61 android:ellipsize="marquee" 62 android:maxLines="1" /> 63 64 <TextView android:id="@+id/attachment_name" 65 android:layout_width="wrap_content" 66 android:layout_height="wrap_content" 67 android:paddingLeft="5dip" 68 android:textAppearance="?android:attr/textAppearanceMedium" 69 android:textColor="?android:attr/textColorSecondary" 70 android:ellipsize="marquee" 71 android:layout_weight=".3" 72 android:maxLines="1" /> 73 74 <ImageView android:id="@+id/attachment_icon" 75 android:layout_width="wrap_content" 76 android:layout_height="wrap_content" 77 android:paddingLeft="5dip" 78 android:paddingTop="5dip" 79 android:layout_weight="0" /> 80 81 <TextView android:id="@+id/duration_text" 82 android:layout_width="wrap_content" 83 android:layout_height="wrap_content" 84 android:layout_alignParentRight="true" 85 android:paddingLeft="10dip" 86 android:paddingRight="10dip" 87 android:textAppearance="?android:attr/textAppearanceMedium" 88 android:textColor="?android:attr/textColorSecondary" 89 android:maxLines="1" 90 android:layout_weight="0" /> 91 </LinearLayout> 92 </LinearLayout> 93 </com.android.mms.ui.SlideListItemView> 94