blob: 8fcdd31a3515fd7ab8f2e73f1ed2d0ca43a2733e [file] [log] [blame]
Chiao Cheng64df8b22012-11-07 18:20:17 -08001<?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"
Gary Mai69c182a2016-12-05 13:07:03 -080021 class="com.android.contacts.list.ContactTilePhoneFrequentView"
Chiao Cheng64df8b22012-11-07 18:20:17 -080022 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
Gary Mai69c182a2016-12-05 13:07:03 -080030 <com.android.contacts.widget.LayoutSuppressingQuickContactBadge
Chiao Cheng64df8b22012-11-07 18:20:17 -080031 android:id="@id/contact_tile_quick"
32 android:layout_width="64dip"
33 android:layout_height="64dip"
34 android:layout_alignParentLeft="true"
Fabrice Di Meglio7eab4d42013-04-03 20:59:09 -070035 android:layout_alignParentStart="true"
Chiao Cheng64df8b22012-11-07 18:20:17 -080036 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"
Fabrice Di Meglio7eab4d42013-04-03 20:59:09 -070045 android:layout_marginStart="8dip"
Chiao Cheng64df8b22012-11-07 18:20:17 -080046 android:textAppearance="?android:attr/textAppearanceMedium"
47 android:layout_marginTop="8dip"
48 android:layout_toRightOf="@id/contact_tile_quick"
Fabrice Di Meglio7eab4d42013-04-03 20:59:09 -070049 android:layout_toEndOf="@id/contact_tile_quick"
Chiao Cheng64df8b22012-11-07 18:20:17 -080050 android:singleLine="true"
51 android:fadingEdge="horizontal"
52 android:fadingEdgeLength="3dip"
Fabrice Di Meglio7eab4d42013-04-03 20:59:09 -070053 android:ellipsize="marquee"
54 android:textAlignment="viewStart" />
Chiao Cheng64df8b22012-11-07 18:20:17 -080055
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"
Fabrice Di Meglio7eab4d42013-04-03 20:59:09 -070062 android:layout_toEndOf="@id/contact_tile_quick"
Chiao Cheng64df8b22012-11-07 18:20:17 -080063 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"
Fabrice Di Meglio7eab4d42013-04-03 20:59:09 -070074 android:layout_marginStart="8dip"
Chiao Cheng64df8b22012-11-07 18:20:17 -080075 android:singleLine="true"
Fabrice Di Meglio7eab4d42013-04-03 20:59:09 -070076 android:layout_gravity="bottom"
77 android:textDirection="ltr"
78 android:textAlignment="viewStart" />
Chiao Cheng64df8b22012-11-07 18:20:17 -080079
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"
Fabrice Di Meglio7eab4d42013-04-03 20:59:09 -070091 android:layout_marginStart="8dip"
92 android:gravity="end"
Chiao Cheng64df8b22012-11-07 18:20:17 -080093 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>