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:id="@+id/contact_detail" 20 android:orientation="vertical" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:background="@color/background_primary" 24 android:paddingLeft="16dip"> 25 26 <!-- Placeholder for empty list --> 27 <include 28 android:id="@android:id/empty" 29 layout="@layout/contact_detail_empty" 30 android:visibility="gone" /> 31 32 <!-- Real list --> 33 <LinearLayout 34 android:orientation="horizontal" 35 android:layout_weight="1" 36 android:layout_width="match_parent" 37 android:layout_height="0dip" 38 android:baselineAligned="false"> 39 40 <include android:id="@+id/static_photo_container" 41 layout="@layout/photo_selector_view" 42 android:layout_width="@dimen/detail_contact_photo_size" 43 android:layout_height="@dimen/detail_contact_photo_size" 44 android:layout_marginTop="@dimen/detail_contact_photo_margin" 45 android:layout_marginRight="@dimen/detail_contact_photo_margin" /> 46 47 <ListView android:id="@android:id/list" 48 android:layout_width="0dip" 49 android:layout_height="match_parent" 50 android:paddingTop="16dip" 51 android:clipToPadding="false" 52 android:fadingEdge="none" 53 android:layout_weight="1" 54 android:divider="@null" 55 android:paddingRight="16dip" 56 android:scrollbarStyle="outsideOverlay"/> 57 58 </LinearLayout> 59 60 <!-- "QuickFix"- button (Copy to local contact, add to group) --> 61 <Button 62 android:id="@+id/contact_quick_fix" 63 android:layout_width="wrap_content" 64 android:layout_height="wrap_content" 65 android:visibility="gone" 66 android:layout_gravity="center" 67 android:layout_marginTop="10dip" 68 android:layout_marginBottom="10dip" /> 69 </LinearLayout> 70