contact_item.xml revision cba7f1fd22e1d7ee9d8d0828f37bc08512bf6b75
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<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:orientation="vertical"> 22 <LinearLayout 23 android:layout_width="match_parent" 24 android:layout_height="48dip" 25 android:orientation="horizontal" 26 android:layout_marginRight="8dip" > 27 <TextView 28 android:id="@+id/name" 29 android:layout_height="wrap_content" 30 android:layout_width="0dip" 31 android:layout_weight="1" 32 android:textSize="16sp" 33 android:layout_gravity="center_vertical" 34 android:gravity="center_vertical" 35 android:textAppearance="?android:attr/textAppearanceMedium" 36 android:focusable="true" 37 style="@style/TextAppearance.EditEvent_Value" /> 38 39 <ImageButton 40 android:id="@+id/contact_remove" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:layout_gravity="center_vertical" 44 android:paddingRight="3dip" 45 android:visibility="gone" 46 android:contentDescription="@string/accessibility_remove_attendee" 47 style="@style/MinusButton" /> 48 49 <QuickContactBadge 50 android:id="@+id/badge" 51 android:layout_gravity="center_vertical" 52 android:layout_width="48dip" 53 android:layout_height="48dip" 54 android:src="@drawable/ic_contact_picture" 55 style="?android:attr/quickContactBadgeStyleWindowMedium" /> 56 </LinearLayout> 57 58 <View 59 android:id="@+id/contact_separator" 60 android:background="?android:attr/listDivider" 61 android:visibility="gone" 62 android:layout_marginLeft="8dip" 63 android:layout_marginRight="8dip" 64 android:layout_height="1px" 65 android:layout_width="match_parent" /> 66 67</LinearLayout> 68