Michael Chan | 47f3f70 | 2009-07-23 16:01:07 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2009 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 | <RelativeLayout |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
Romain Guy | df279e3 | 2010-01-08 15:06:46 -0800 | [diff] [blame^] | 19 | android:layout_width="match_parent" |
Michael Chan | 5627b82 | 2009-08-24 23:22:25 -0700 | [diff] [blame] | 20 | android:paddingLeft="0dip" |
| 21 | android:paddingRight="9dip" |
Michael Chan | 5627b82 | 2009-08-24 23:22:25 -0700 | [diff] [blame] | 22 | android:minHeight="48dip"> |
Michael Chan | 47f3f70 | 2009-07-23 16:01:07 -0700 | [diff] [blame] | 23 | |
Evan Millar | 0881676 | 2009-09-29 18:08:53 -0700 | [diff] [blame] | 24 | <QuickContactBadge |
Michael Chan | e328d23 | 2009-09-23 11:37:38 -0700 | [diff] [blame] | 25 | android:id="@+id/badge" |
| 26 | android:paddingLeft="3dip" |
| 27 | android:paddingRight="3dip" |
| 28 | android:paddingTop="3dip" |
| 29 | android:paddingBottom="6dip" |
| 30 | android:layout_above="@+id/separator" |
Michael Chan | 5627b82 | 2009-08-24 23:22:25 -0700 | [diff] [blame] | 31 | android:layout_marginLeft="2dip" |
| 32 | android:layout_marginRight="14dip" |
Michael Chan | e328d23 | 2009-09-23 11:37:38 -0700 | [diff] [blame] | 33 | android:layout_marginTop="4dip" |
Michael Chan | 5627b82 | 2009-08-24 23:22:25 -0700 | [diff] [blame] | 34 | android:layout_marginBottom="3dip" |
Michael Chan | 47f3f70 | 2009-07-23 16:01:07 -0700 | [diff] [blame] | 35 | android:layout_alignParentLeft="true" |
Michael Chan | e328d23 | 2009-09-23 11:37:38 -0700 | [diff] [blame] | 36 | android:layout_alignParentTop="true" |
Michael Chan | 5627b82 | 2009-08-24 23:22:25 -0700 | [diff] [blame] | 37 | android:src="@drawable/ic_contact_picture" |
Jeff Sharkey | 56be524 | 2009-12-16 15:39:18 -0800 | [diff] [blame] | 38 | style="?android:attr/quickContactBadgeStyleWindowMedium" /> |
Michael Chan | 47f3f70 | 2009-07-23 16:01:07 -0700 | [diff] [blame] | 39 | |
| 40 | <TextView |
| 41 | android:id="@+id/name" |
| 42 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 43 | android:inputType="none" |
Michael Chan | 5627b82 | 2009-08-24 23:22:25 -0700 | [diff] [blame] | 44 | android:paddingLeft="2dip" |
Michael Chan | 47f3f70 | 2009-07-23 16:01:07 -0700 | [diff] [blame] | 45 | android:layout_centerVertical="true" |
Michael Chan | e328d23 | 2009-09-23 11:37:38 -0700 | [diff] [blame] | 46 | android:layout_toRightOf="@id/badge" |
Romain Guy | df279e3 | 2010-01-08 15:06:46 -0800 | [diff] [blame^] | 47 | android:layout_width="match_parent" |
Michael Chan | 47f3f70 | 2009-07-23 16:01:07 -0700 | [diff] [blame] | 48 | android:layout_height="wrap_content" /> |
| 49 | |
| 50 | <ImageView |
| 51 | android:id="@+id/presence" |
| 52 | android:scaleType="fitXY" |
| 53 | android:visibility="gone" |
| 54 | android:layout_alignParentRight="true" |
| 55 | android:layout_centerVertical="true" |
| 56 | android:layout_width="wrap_content" |
| 57 | android:layout_height="wrap_content" /> |
| 58 | |
| 59 | <View |
| 60 | android:id="@+id/separator" |
Romain Guy | df279e3 | 2010-01-08 15:06:46 -0800 | [diff] [blame^] | 61 | android:layout_width="match_parent" |
Michael Chan | 79edc46 | 2009-09-28 16:50:46 -0700 | [diff] [blame] | 62 | android:layout_height="1px" |
Michael Chan | 47f3f70 | 2009-07-23 16:01:07 -0700 | [diff] [blame] | 63 | android:layout_alignParentBottom="true" |
| 64 | android:background="@android:drawable/divider_horizontal_bright" /> |
| 65 | |
| 66 | </RelativeLayout> |