1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2012 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 24 <!-- Placeholder for empty list --> 25 <include 26 android:id="@android:id/empty" 27 layout="@layout/contact_detail_empty" 28 android:visibility="gone" /> 29 30 <!-- Real list --> 31 <LinearLayout 32 android:orientation="horizontal" 33 android:layout_weight="1" 34 android:layout_width="match_parent" 35 android:layout_height="0dip" 36 android:baselineAligned="false"> 37 38 <include android:id="@+id/static_photo_container" 39 layout="@layout/photo_selector_view" 40 android:layout_width="@dimen/detail_contact_photo_size" 41 android:layout_height="@dimen/detail_contact_photo_size" 42 android:layout_marginTop="@dimen/detail_contact_photo_margin" 43 android:layout_marginRight="@dimen/detail_contact_photo_margin" 44 android:layout_marginEnd="@dimen/detail_contact_photo_margin" /> 45 46 <ListView android:id="@android:id/list" 47 android:layout_width="0dip" 48 android:layout_height="match_parent" 49 android:paddingTop="16dip" 50 android:clipToPadding="false" 51 android:fadingEdge="none" 52 android:layout_weight="1" 53 android:divider="@null" 54 android:scrollbarStyle="outsideOverlay" 55 android:paddingRight="16dip" 56 android:paddingEnd="16dip"/> 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