1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2017 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<RelativeLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:orientation="horizontal"
20    android:layout_width="match_parent"
21    android:layout_height="@dimen/search_row_height"
22    android:paddingStart="8dp"
23    android:paddingEnd="8dp"
24    android:background="?android:attr/selectableItemBackground">
25
26  <QuickContactBadge
27      android:id="@+id/photo"
28      android:layout_width="@dimen/search_row_height"
29      android:layout_height="@dimen/search_row_height"
30      android:padding="@dimen/search_photo_padding"
31      android:clickable="false"/>
32
33  <LinearLayout
34      android:orientation="vertical"
35      android:layout_width="wrap_content"
36      android:layout_height="wrap_content"
37      android:layout_toEndOf="@+id/photo"
38      android:layout_toStartOf="@+id/call_to_action"
39      android:layout_centerVertical="true"
40      android:layout_marginStart="8dp">
41
42    <com.android.dialer.widget.BidiTextView
43        android:id="@+id/primary"
44        android:layout_width="wrap_content"
45        android:layout_height="wrap_content"
46        android:gravity="center_vertical|start"
47        android:fontFamily="sans-serif"
48        style="@style/Dialer.TextAppearance.Primary"/>
49
50    <com.android.dialer.widget.BidiTextView
51        android:id="@+id/secondary"
52        android:layout_width="wrap_content"
53        android:layout_height="wrap_content"
54        android:gravity="center_vertical|start"
55        android:fontFamily="sans-serif"
56        style="@style/Dialer.TextAppearance.Secondary"/>
57  </LinearLayout>
58
59  <ImageView
60      android:id="@+id/call_to_action"
61      android:layout_width="@dimen/search_row_height"
62      android:layout_height="@dimen/search_row_height"
63      android:layout_alignParentEnd="true"
64      android:padding="@dimen/call_to_action_padding"
65      android:tint="?colorIcon"
66      android:visibility="gone"
67      android:scaleType="center"/>
68
69  <ImageView
70      android:id="@+id/work_icon"
71      android:layout_width="@dimen/search_row_height"
72      android:layout_height="@dimen/search_row_height"
73      android:layout_alignParentEnd="true"
74      android:layout_centerVertical="true"
75      android:padding="@dimen/call_to_action_padding"
76      android:src="@drawable/ic_work_profile"
77      android:tint="?colorIcon"
78      android:scaleType="centerInside"
79      android:visibility="gone"/>
80</RelativeLayout>