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 |
Daisuke Miyakawa | bdcb9fc | 2010-10-18 13:10:56 -0700 | [diff] [blame^] | 7 | |
Michael Chan | 47f3f70 | 2009-07-23 16:01:07 -0700 | [diff] [blame] | 8 | http://www.apache.org/licenses/LICENSE-2.0 |
Daisuke Miyakawa | bdcb9fc | 2010-10-18 13:10:56 -0700 | [diff] [blame^] | 9 | |
Michael Chan | 47f3f70 | 2009-07-23 16:01:07 -0700 | [diff] [blame] | 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 | |
Daisuke Miyakawa | bdcb9fc | 2010-10-18 13:10:56 -0700 | [diff] [blame^] | 17 | <LinearLayout |
Michael Chan | 47f3f70 | 2009-07-23 16:01:07 -0700 | [diff] [blame] | 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" |
Daisuke Miyakawa | bdcb9fc | 2010-10-18 13:10:56 -0700 | [diff] [blame^] | 20 | android:layout_height="wrap_content" |
| 21 | android:orientation="horizontal" |
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" |
Michael Chan | 5627b82 | 2009-08-24 23:22:25 -0700 | [diff] [blame] | 30 | android:layout_marginLeft="2dip" |
| 31 | android:layout_marginRight="14dip" |
Michael Chan | e328d23 | 2009-09-23 11:37:38 -0700 | [diff] [blame] | 32 | android:layout_marginTop="4dip" |
Michael Chan | 5627b82 | 2009-08-24 23:22:25 -0700 | [diff] [blame] | 33 | android:layout_marginBottom="3dip" |
Michael Chan | 5627b82 | 2009-08-24 23:22:25 -0700 | [diff] [blame] | 34 | android:src="@drawable/ic_contact_picture" |
Jeff Sharkey | 56be524 | 2009-12-16 15:39:18 -0800 | [diff] [blame] | 35 | style="?android:attr/quickContactBadgeStyleWindowMedium" /> |
Michael Chan | 47f3f70 | 2009-07-23 16:01:07 -0700 | [diff] [blame] | 36 | |
Erik | d845fbe | 2010-08-12 11:20:01 -0700 | [diff] [blame] | 37 | <TextView |
| 38 | android:id="@+id/name" |
Erik | d845fbe | 2010-08-12 11:20:01 -0700 | [diff] [blame] | 39 | android:layout_height="wrap_content" |
Daisuke Miyakawa | bdcb9fc | 2010-10-18 13:10:56 -0700 | [diff] [blame^] | 40 | android:layout_width="0dip" |
| 41 | android:layout_weight="1" |
| 42 | android:layout_gravity="center_vertical" |
| 43 | android:gravity="center_vertical" |
| 44 | android:paddingRight="3dip" |
| 45 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 46 | style="@style/TextAppearance.EditEvent_Label" /> |
Erik | d845fbe | 2010-08-12 11:20:01 -0700 | [diff] [blame] | 47 | |
Daisuke Miyakawa | bdcb9fc | 2010-10-18 13:10:56 -0700 | [diff] [blame^] | 48 | <ImageView |
| 49 | android:id="@+id/presence" |
| 50 | android:layout_width="wrap_content" |
| 51 | android:layout_height="wrap_content" |
| 52 | android:layout_gravity="center_vertical" |
| 53 | android:paddingRight="3dip" |
| 54 | android:scaleType="fitXY" |
| 55 | android:visibility="gone" /> |
Michael Chan | 47f3f70 | 2009-07-23 16:01:07 -0700 | [diff] [blame] | 56 | |
Daisuke Miyakawa | bdcb9fc | 2010-10-18 13:10:56 -0700 | [diff] [blame^] | 57 | <ImageButton |
| 58 | android:id="@+id/contact_remove" |
| 59 | android:layout_width="wrap_content" |
| 60 | android:layout_height="wrap_content" |
| 61 | android:layout_gravity="center_vertical" |
| 62 | android:paddingRight="3dip" |
| 63 | android:visibility="gone" |
| 64 | style="@style/MinusButton" /> |
| 65 | |
| 66 | </LinearLayout> |