• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    xmlns:ex="http://schemas.android.com/apk/res/com.android.contacts"
20    android:id="@+id/contact_detail"
21    android:orientation="vertical"
22    android:layout_width="match_parent"
23    android:layout_height="match_parent"
24    android:background="@color/background_primary"
25    android:padding="16dip">
26
27    <!-- Placeholder for empty list -->
28    <include
29        android:id="@android:id/empty"
30        layout="@layout/contact_detail_empty"
31        android:visibility="gone" />
32
33    <!-- Real list -->
34    <LinearLayout
35        android:orientation="horizontal"
36        android:layout_weight="1"
37        android:layout_width="match_parent"
38        android:layout_height="0dip">
39
40        <ImageView android:id="@+id/photo"
41            android:scaleType="centerCrop"
42            android:layout_width="@dimen/detail_contact_photo_size"
43            android:layout_height="@dimen/detail_contact_photo_size"
44            android:layout_marginRight="@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:fadingEdge="none"
50            android:layout_weight="1"
51            android:divider="@null"/>
52
53   </LinearLayout>
54
55    <!-- "QuickFix"- button (Copy to local contact, add to group) -->
56    <Button
57        android:id="@+id/contact_quick_fix"
58        android:layout_width="wrap_content"
59        android:layout_height="wrap_content"
60        android:visibility="gone"
61        android:layout_gravity="center"
62        android:layout_marginTop="10dip"
63        android:layout_marginBottom="10dip" />
64</LinearLayout>
65