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<!-- Layout parameters are set programmatically. -->
18<view
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:id="@+id/contact_tile_frequent_phone"
21    class="com.android.contacts.common.list.ContactTilePhoneFrequentView"
22    android:focusable="true"
23    android:background="?android:attr/selectableItemBackground"
24    android:nextFocusLeft="@+id/contact_tile_quick">
25
26    <RelativeLayout
27        android:layout_width="match_parent"
28        android:layout_height="match_parent" >
29
30        <com.android.contacts.common.widget.LayoutSuppressingQuickContactBadge
31            android:id="@id/contact_tile_quick"
32            android:layout_width="64dip"
33            android:layout_height="64dip"
34            android:layout_alignParentLeft="true"
35            android:layout_alignParentStart="true"
36            android:nextFocusRight="@id/contact_tile_frequent_phone"
37            android:scaleType="centerCrop"
38            android:focusable="true" />
39
40        <TextView
41            android:id="@+id/contact_tile_name"
42            android:layout_width="match_parent"
43            android:layout_height="wrap_content"
44            android:layout_marginLeft="8dip"
45            android:layout_marginStart="8dip"
46            android:textAppearance="?android:attr/textAppearanceMedium"
47            android:layout_marginTop="8dip"
48            android:layout_toRightOf="@id/contact_tile_quick"
49            android:layout_toEndOf="@id/contact_tile_quick"
50            android:singleLine="true"
51            android:fadingEdge="horizontal"
52            android:fadingEdgeLength="3dip"
53            android:ellipsize="marquee"
54            android:textAlignment="viewStart" />
55
56        <LinearLayout
57            android:orientation="horizontal"
58            android:layout_width="match_parent"
59            android:layout_height="wrap_content"
60            android:layout_below="@id/contact_tile_name"
61            android:layout_toRightOf="@id/contact_tile_quick"
62            android:layout_toEndOf="@id/contact_tile_quick"
63            android:gravity="center_vertical">
64
65            <TextView
66                android:id="@+id/contact_tile_phone_number"
67                android:layout_width="0dip"
68                android:layout_height="wrap_content"
69                android:layout_weight="?attr/list_item_data_width_weight"
70                android:textSize="14sp"
71                android:ellipsize="marquee"
72                android:textColor="@color/dialtacts_secondary_text_color"
73                android:layout_marginLeft="8dip"
74                android:layout_marginStart="8dip"
75                android:singleLine="true"
76                android:layout_gravity="bottom"
77                android:textDirection="ltr"
78                android:textAlignment="viewStart" />
79
80            <TextView
81                android:id="@+id/contact_tile_phone_type"
82                android:layout_width="0dip"
83                android:layout_height="wrap_content"
84                android:layout_weight="?attr/list_item_label_width_weight"
85                android:textSize="12sp"
86                android:ellipsize="marquee"
87                android:singleLine="true"
88                android:textAllCaps="true"
89                android:textColor="@color/dialtacts_secondary_text_color"
90                android:layout_marginLeft="8dip"
91                android:layout_marginStart="8dip"
92                android:gravity="end"
93                android:layout_gravity="bottom" />
94
95        </LinearLayout>
96
97        <View
98            android:id="@+id/contact_tile_horizontal_divider"
99            android:layout_width="match_parent"
100            android:layout_height="1px"
101            android:background="?android:attr/listDivider"
102            android:layout_below="@id/contact_tile_quick" />
103
104    </RelativeLayout>
105
106</view>
107