Mindy Pereira | 97d7768 | 2011-06-01 10:48:55 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2011 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 |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="wrap_content" |
| 21 | android:minHeight="30dip" |
| 22 | android:orientation="horizontal" |
Mindy Pereira | 007a76b | 2011-06-14 11:39:36 -0700 | [diff] [blame^] | 23 | android:gravity="left|center_vertical" |
| 24 | android:background="@drawable/list_item_background"> |
Mindy Pereira | 67ad489 | 2011-06-02 12:21:22 -0700 | [diff] [blame] | 25 | <FrameLayout |
| 26 | android:layout_width="50dip" |
| 27 | android:layout_height="wrap_content"> |
| 28 | <ImageView |
| 29 | android:id="@android:id/icon" |
| 30 | android:layout_width="42dip" |
| 31 | android:layout_height="42dip" |
| 32 | android:layout_margin="4dip" |
| 33 | android:src="@drawable/ic_contact_picture" |
| 34 | android:cropToPadding="true" |
| 35 | android:scaleType="centerCrop" /> |
| 36 | </FrameLayout> |
Mindy Pereira | 97d7768 | 2011-06-01 10:48:55 -0700 | [diff] [blame] | 37 | <LinearLayout |
| 38 | android:layout_width="wrap_content" |
| 39 | android:layout_height="wrap_content" |
| 40 | android:orientation="vertical" |
| 41 | android:gravity="left|center_vertical"> |
| 42 | <TextView android:id="@android:id/text1" |
| 43 | android:textColor="?android:attr/textColorPrimary" |
| 44 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 45 | android:layout_width="wrap_content" |
| 46 | android:layout_height="wrap_content" |
| 47 | android:gravity="center_vertical" |
| 48 | android:paddingLeft="6dip" |
| 49 | android:singleLine="true" |
| 50 | android:ellipsize="end" /> |
Mindy Pereira | 67ad489 | 2011-06-02 12:21:22 -0700 | [diff] [blame] | 51 | <TextView android:id="@android:id/text2" |
| 52 | android:textColor="?android:attr/textColorSecondary" |
| 53 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 54 | android:layout_width="wrap_content" |
| 55 | android:layout_height="wrap_content" |
| 56 | android:gravity="center_vertical" |
| 57 | android:paddingLeft="6dip" |
| 58 | android:singleLine="true" |
| 59 | android:ellipsize="end" /> |
Mindy Pereira | 97d7768 | 2011-06-01 10:48:55 -0700 | [diff] [blame] | 60 | </LinearLayout> |
| 61 | </LinearLayout> |