• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright (C) 2015 The Android Open Source Project
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9         http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16-->
17<com.android.messaging.ui.contact.ContactListItemView
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    style="@style/ContactListItemViewStyle"
21    android:orientation="horizontal"
22    android:layout_width="match_parent"
23    android:layout_height="wrap_content"
24    android:paddingTop="8dp"
25    android:paddingBottom="8dp"
26    android:background="?android:attr/selectableItemBackground">
27
28    <TextView
29        style="@style/ContactListAlphabetHeader"
30        android:id="@+id/alphabet_header"
31        android:layout_height="wrap_content"
32        android:layout_width="56dp"
33        android:layout_gravity="center_vertical"
34        android:visibility="gone" />
35
36    <FrameLayout
37        android:layout_width="wrap_content"
38        android:layout_height="wrap_content"
39        android:layout_gravity="center_vertical">
40
41        <com.android.messaging.ui.ContactIconView
42            android:id="@+id/contact_icon"
43            android:layout_width="@dimen/contact_list_icon_size"
44            android:layout_height="@dimen/contact_list_icon_size"
45            android:importantForAccessibility="no"
46            app:iconSize="normal"
47            android:clickable="true" />
48
49        <ImageView
50            android:id="@+id/contact_checkmark"
51            android:layout_width="@dimen/contact_list_icon_size"
52            android:layout_height="@dimen/contact_list_icon_size"
53            android:src="@drawable/ic_checkmark_circle_blue"
54            android:visibility="gone"
55            android:importantForAccessibility="no"
56        android:contentDescription="@null"/>
57
58    </FrameLayout>
59
60    <LinearLayout
61        android:orientation="vertical"
62        style="@style/ContactListItemLinearLayoutStyle"
63        android:layout_width="match_parent"
64        android:layout_height="wrap_content"
65        android:layout_gravity="center_vertical" >
66
67    <LinearLayout
68        android:orientation="horizontal"
69        android:layout_width="match_parent"
70        android:layout_height="wrap_content">
71            <TextView
72                android:id="@+id/contact_name"
73                android:layout_width="wrap_content"
74                android:layout_height="wrap_content"
75                android:layout_weight="1"
76                android:paddingBottom="4dp"
77                android:singleLine="true"
78                android:maxLines="1"
79                android:ellipsize="end"
80                style="@style/ContactListItem" />
81
82            <ImageView android:id="@+id/work_profile_icon"
83                android:src="@drawable/ic_work_profile"
84                android:layout_width="wrap_content"
85                android:layout_height="wrap_content"
86                android:scaleType="center"
87                android:layout_gravity="center_vertical"
88                android:visibility="gone" />
89        </LinearLayout>
90
91        <LinearLayout
92            android:orientation="horizontal"
93            android:layout_width="match_parent"
94            android:layout_height="wrap_content">
95            <TextView
96                android:id="@+id/contact_details"
97                android:layout_width="0dp"
98                android:layout_weight="1"
99                android:layout_height="wrap_content"
100                android:singleLine="true"
101                android:maxLines="1"
102                android:ellipsize="end"
103                style="@style/ContactListItemDetail" />
104
105            <TextView
106                android:id="@+id/contact_detail_type"
107                android:layout_width="wrap_content"
108                android:layout_height="wrap_content"
109                style="@style/ContactListItemDetailType" />
110        </LinearLayout>
111    </LinearLayout>
112</com.android.messaging.ui.contact.ContactListItemView>
113