• 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<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    android:id="@+id/contact_detail"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent">
21
22     <!-- "QuickFix"- button (Copy to local contact, add to group) -->
23    <Button
24        android:id="@+id/contact_quick_fix"
25        android:layout_width="wrap_content"
26        android:layout_height="wrap_content"
27        android:visibility="gone"
28        android:layout_alignParentRight="true"
29        android:layout_alignParentBottom="true"
30        android:layout_marginRight="40dip"
31        android:layout_marginTop="20dip"
32        android:layout_marginBottom="20dip" />
33
34    <LinearLayout
35        android:orientation="horizontal"
36        android:layout_width="match_parent"
37        android:layout_above="@id/contact_quick_fix"
38        android:layout_height="match_parent"
39        android:background="@color/background_primary" >
40
41        <ImageView android:id="@+id/photo"
42            android:scaleType="centerCrop"
43            android:layout_width="128dip"
44            android:layout_height="128dip"
45            android:layout_marginLeft="@dimen/detail_contact_photo_margin"
46            android:layout_marginTop="@dimen/detail_contact_photo_margin"/>
47
48        <ListView android:id="@android:id/list"
49            android:layout_width="0dip"
50            android:layout_height="match_parent"
51            android:fadingEdge="none"
52            android:layout_weight="1"
53            android:divider="@null"/>
54
55    </LinearLayout>
56
57    <ScrollView android:id="@android:id/empty"
58        android:layout_width="match_parent"
59        android:layout_height="0px"
60        android:fadingEdge="none"
61        android:visibility="gone">
62        <TextView android:id="@+id/emptyText"
63            android:layout_width="match_parent"
64            android:layout_height="wrap_content"
65            android:text="@string/no_contact_details"
66            android:textSize="20sp"
67            android:textColor="?android:attr/textColorSecondary"
68            android:paddingLeft="10dip"
69            android:paddingRight="10dip"
70            android:paddingTop="10dip"
71            android:lineSpacingMultiplier="0.92"/>
72    </ScrollView>
73
74    <View
75        android:id="@+id/alpha_overlay"
76        android:layout_width="match_parent"
77        android:layout_height="match_parent"
78        android:layout_alignParentLeft="true"
79        android:layout_alignParentTop="true"/>
80
81    <View
82        android:id="@+id/touch_intercept_overlay"
83        android:layout_width="match_parent"
84        android:layout_height="match_parent"
85        android:layout_alignParentLeft="true"
86        android:layout_alignParentTop="true"
87        android:background="?android:attr/selectableItemBackground"
88        android:visibility="gone"/>
89</RelativeLayout>
90
91