• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4 * Copyright 2009, The Android Open Source Project
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 *      http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18-->
19
20<LinearLayout  xmlns:android="http://schemas.android.com/apk/res/android"
21    android:layout_width="fill_parent"
22    android:layout_height="wrap_content"
23    android:orientation="vertical"
24>
25    <include
26        android:id="@+id/header"
27        layout="@layout/list_section"
28    />
29
30    <RelativeLayout
31        android:layout_width="fill_parent"
32        android:layout_height="?android:attr/listPreferredItemHeight"
33        android:paddingLeft="4dip"
34    >
35
36        <LinearLayout android:id="@+id/right_side"
37            android:layout_width="wrap_content"
38            android:layout_height="fill_parent"
39            android:orientation="horizontal"
40            android:layout_marginLeft="11dip"
41            android:layout_alignParentRight="true">
42
43            <ImageView android:id="@+id/presence"
44                android:layout_width="wrap_content"
45                android:layout_height="wrap_content"
46                android:layout_marginLeft="5dip"
47                android:layout_marginRight="5dip"
48                android:padding="7dip"
49                android:layout_gravity="center_vertical"
50                android:scaleType="centerInside"
51            />
52
53            <LinearLayout android:id="@+id/call_view"
54                android:layout_width="wrap_content"
55                android:layout_height="fill_parent"
56                android:orientation="horizontal">
57
58                <View android:id="@+id/divider"
59                    android:layout_width="1px"
60                    android:layout_height="fill_parent"
61                    android:layout_marginTop="5dip"
62                    android:layout_marginBottom="5dip"
63                    android:background="@drawable/divider_vertical_dark"
64                />
65
66                <com.android.contacts.ui.widget.DontPressWithParentImageView android:id="@+id/call_button"
67                    android:layout_width="wrap_content"
68                    android:layout_height="fill_parent"
69                    android:paddingLeft="14dip"
70                    android:paddingRight="14dip"
71                    android:layout_centerVertical="true"
72                    android:gravity="center"
73                    android:src="@android:drawable/sym_action_call"
74                    android:background="@drawable/call_background"
75                />
76
77            </LinearLayout>
78        </LinearLayout>
79
80        <android.widget.QuickContactBadge android:id="@+id/photo"
81            android:layout_alignParentLeft="true"
82            android:layout_centerVertical="true"
83            android:layout_marginRight="8dip"
84            style="@*android:style/Widget.QuickContactBadge.WindowMedium" />
85        />
86
87        <ImageView android:id="@+id/noQuickContactPhoto"
88            android:layout_alignParentLeft="true"
89            android:layout_centerVertical="true"
90            android:layout_marginRight="8dip"
91            style="@*android:style/Widget.QuickContactBadge.WindowMedium"
92            android:background="@null" />
93        />
94
95        <TextView android:id="@+id/label"
96            android:layout_width="wrap_content"
97            android:layout_height="wrap_content"
98            android:layout_toRightOf="@id/photo"
99            android:layout_alignParentBottom="true"
100            android:layout_marginBottom="8dip"
101            android:layout_marginTop="-10dip"
102
103            android:singleLine="true"
104            android:ellipsize="marquee"
105            android:textAppearance="?android:attr/textAppearanceSmall"
106            android:textStyle="bold"
107        />
108
109        <TextView android:id="@+id/data"
110            android:layout_width="wrap_content"
111            android:layout_height="wrap_content"
112            android:layout_marginLeft="5dip"
113            android:layout_toRightOf="@id/label"
114            android:layout_toLeftOf="@id/right_side"
115            android:layout_alignBaseline="@id/label"
116            android:layout_alignWithParentIfMissing="true"
117
118            android:singleLine="true"
119            android:ellipsize="marquee"
120            android:textAppearance="?android:attr/textAppearanceSmall"
121        />
122
123        <TextView android:id="@+id/name"
124            android:layout_width="0dip"
125            android:layout_height="0dip"
126            android:layout_toRightOf="@id/photo"
127            android:layout_toLeftOf="@id/right_side"
128            android:layout_alignParentTop="true"
129            android:layout_above="@id/label"
130            android:layout_alignWithParentIfMissing="true"
131
132            android:singleLine="true"
133            android:ellipsize="marquee"
134            android:gravity="center_vertical|left"
135            android:textAppearance="?android:attr/textAppearanceLarge"
136        />
137
138    </RelativeLayout>
139
140    <View android:id="@+id/list_divider"
141        android:layout_width="fill_parent"
142        android:layout_height="wrap_content"
143        android:background="@*android:drawable/divider_horizontal_dark_opaque"
144    />
145</LinearLayout>
146