1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2018 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<androidx.constraintlayout.widget.ConstraintLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent">
22
23    <androidx.constraintlayout.widget.Guideline
24        android:layout_width="wrap_content"
25        android:layout_height="wrap_content"
26        android:id="@+id/contact_list_guideline_begin"
27        android:orientation="vertical"
28        app:layout_constraintGuide_begin="@dimen/contact_list_guideline_begin"/>
29
30    <androidx.constraintlayout.widget.Guideline
31        android:layout_width="wrap_content"
32        android:layout_height="wrap_content"
33        android:id="@+id/contact_list_guideline_end"
34        android:orientation="vertical"
35        app:layout_constraintGuide_end="@dimen/contact_list_guideline_end"/>
36
37    <View
38        android:id="@+id/call_action_id"
39        android:background="?android:attr/selectableItemBackground"
40        android:layout_width="0dp"
41        android:layout_height="match_parent"
42        app:layout_constraintStart_toStartOf="parent"
43        app:layout_constraintEnd_toStartOf="@id/contact_list_guideline_end"
44        app:layout_constraintTop_toTopOf="parent"
45        app:layout_constraintBottom_toBottomOf="parent"/>
46
47    <ImageView
48        android:id="@+id/icon"
49        android:layout_width="@dimen/avatar_icon_size"
50        android:layout_height="@dimen/avatar_icon_size"
51        android:layout_marginStart="@dimen/contact_list_item_padding"
52        android:scaleType="centerCrop"
53        app:layout_constraintTop_toTopOf="parent"
54        app:layout_constraintBottom_toBottomOf="parent"
55        app:layout_constraintStart_toStartOf="parent"/>
56
57    <TextView
58        android:id="@+id/title"
59        android:layout_width="0dp"
60        android:layout_height="wrap_content"
61        android:layout_marginEnd="@dimen/contact_list_text_margin_end"
62        android:textAppearance="?android:attr/textAppearanceLarge"
63        android:singleLine="true"
64        app:layout_constraintVertical_chainStyle="packed"
65        app:layout_constraintTop_toTopOf="parent"
66        app:layout_constraintBottom_toTopOf="@+id/text"
67        app:layout_constraintStart_toStartOf="@id/contact_list_guideline_begin"
68        app:layout_constraintEnd_toEndOf="@id/contact_list_guideline_end"/>
69
70    <TextView
71        android:id="@id/text"
72        android:layout_width="0dp"
73        android:layout_height="wrap_content"
74        android:layout_marginEnd="@dimen/contact_list_text_margin_end"
75        android:textAppearance="?android:attr/textAppearanceSmall"
76        android:singleLine="true"
77        app:layout_constraintTop_toBottomOf="@id/title"
78        app:layout_constraintBottom_toBottomOf="parent"
79        app:layout_constraintStart_toStartOf="@id/contact_list_guideline_begin"
80        app:layout_constraintEnd_toEndOf="@id/contact_list_guideline_end"/>
81
82    <androidx.constraintlayout.widget.ConstraintLayout
83        android:id="@+id/show_contact_detail_id"
84        android:layout_width="0dp"
85        android:layout_height="match_parent"
86        app:layout_constraintStart_toStartOf="@id/contact_list_guideline_end"
87        app:layout_constraintEnd_toEndOf="parent"
88        app:layout_constraintTop_toTopOf="parent"
89        app:layout_constraintBottom_toBottomOf="parent">
90
91        <View
92            android:layout_width="@dimen/vertical_divider_width"
93            android:layout_height="match_parent"
94            android:background="@color/divider_color"
95            android:layout_marginTop="@dimen/vertical_divider_inset"
96            android:layout_marginBottom="@dimen/vertical_divider_inset"
97            app:layout_constraintStart_toStartOf="parent"/>
98
99        <ImageView
100            android:id="@+id/contact_list_button"
101            android:layout_width="match_parent"
102            android:layout_height="match_parent"
103            android:src="@drawable/ic_arrow_right"
104            android:background="?android:attr/selectableItemBackground"
105            android:duplicateParentState="true"
106            android:scaleType="center"
107            app:layout_constraintTop_toTopOf="parent"
108            app:layout_constraintBottom_toBottomOf="parent"
109            app:layout_constraintStart_toEndOf="@id/contact_list_guideline_end"
110            app:layout_constraintEnd_toEndOf="parent"/>
111
112    </androidx.constraintlayout.widget.ConstraintLayout>
113</androidx.constraintlayout.widget.ConstraintLayout>
114