1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2007 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:orientation="vertical" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:paddingLeft="4dip" 22 android:paddingRight="4dip" 23 android:paddingTop="4dip" 24 > 25 26 <TextView 27 android:layout_gravity="center_vertical" 28 android:layout_width="wrap_content" 29 android:layout_height="wrap_content" 30 android:paddingBottom="12dip" 31 android:textAppearance="?android:attr/textAppearanceMedium" 32 android:text="@string/incoming_message_view_message_text" 33 /> 34 35 <LinearLayout 36 android:orientation="horizontal" 37 android:layout_width="match_parent" 38 android:layout_height="wrap_content" 39 > 40 41 <ImageView 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:src="@drawable/sample_thumb_2" 45 /> 46 47 <LinearLayout 48 android:orientation="vertical" 49 android:layout_width="match_parent" 50 android:layout_height="wrap_content" 51 android:layout_gravity="center_vertical" 52 android:paddingLeft="6dip" 53 > 54 <TextView 55 android:id="@+id/from" 56 android:layout_width="wrap_content" 57 android:layout_height="wrap_content" 58 android:textAppearance="?android:attr/textAppearanceSmall" 59 /> 60 <TextView 61 android:id="@+id/message" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:textAppearance="?android:attr/textAppearanceMedium" 65 /> 66 </LinearLayout> 67 68 </LinearLayout> 69 70 <TextView 71 android:layout_gravity="center_vertical" 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" 74 android:paddingTop="12dip" 75 android:textAppearance="?android:attr/textAppearanceMedium" 76 android:text="@string/imcoming_message_view_message2_text" 77 /> 78 79</LinearLayout> 80 81