• 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="14dip"
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
79        </LinearLayout>
80
81        <TextView android:id="@+id/label"
82            android:layout_width="wrap_content"
83            android:layout_height="wrap_content"
84            android:layout_alignParentLeft="true"
85            android:layout_alignParentBottom="true"
86            android:layout_marginBottom="8dip"
87            android:layout_marginTop="-8dip"
88
89            android:singleLine="true"
90            android:ellipsize="marquee"
91            android:textAppearance="?android:attr/textAppearanceSmall"
92            android:textStyle="bold"
93        />
94
95        <TextView android:id="@+id/data"
96            android:layout_width="wrap_content"
97            android:layout_height="wrap_content"
98            android:layout_marginLeft="5dip"
99            android:layout_toRightOf="@id/label"
100            android:layout_alignBaseline="@id/label"
101            android:layout_toLeftOf="@id/right_side"
102            android:layout_alignWithParentIfMissing="true"
103
104            android:singleLine="true"
105            android:ellipsize="marquee"
106            android:textAppearance="?android:attr/textAppearanceSmall"
107        />
108
109        <TextView android:id="@+id/name"
110            android:layout_width="0dip"
111            android:layout_height="0dip"
112            android:layout_above="@id/label"
113            android:layout_alignWithParentIfMissing="true"
114            android:layout_alignParentTop="true"
115            android:layout_alignParentLeft="true"
116            android:layout_toLeftOf="@id/right_side"
117            android:layout_marginBottom="1dip"
118
119            android:singleLine="true"
120            android:ellipsize="marquee"
121            android:gravity="center_vertical|left"
122            android:textAppearance="?android:attr/textAppearanceLarge"
123        />
124    </RelativeLayout>
125
126    <View android:id="@+id/list_divider"
127        android:layout_width="fill_parent"
128        android:layout_height="wrap_content"
129        android:background="@*android:drawable/divider_horizontal_dark_opaque"
130    />
131</LinearLayout>
132