1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2018 The Android Open Source Project
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6  http://www.apache.org/licenses/LICENSE-2.0
7Unless required by applicable law or agreed to in writing, software
8distributed under the License is distributed on an "AS IS" BASIS,
9WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10See the License for the specific language governing permissions and
11limitations under the License.
12-->
13<LinearLayout
14    xmlns:android="http://schemas.android.com/apk/res/android"
15    android:layout_width="match_parent"
16    android:layout_height="match_parent"
17    android:gravity="start|center_vertical"
18    android:orientation="horizontal"
19    android:paddingStart="@dimen/in_call_user_profile_margin"
20    android:paddingEnd="@dimen/in_call_user_profile_margin">
21    <ImageView
22        android:id="@+id/user_profile_avatar"
23        android:layout_width="@dimen/in_call_avatar_icon_size"
24        android:layout_height="@dimen/in_call_avatar_icon_size"
25        android:scaleType="fitCenter"/>
26
27    <LinearLayout
28        android:layout_height="wrap_content"
29        android:layout_width="fill_parent"
30        android:orientation="vertical"
31        android:paddingStart="@dimen/in_call_margin_between_avatar_and_text">
32        <TextView
33            android:id="@+id/user_profile_title"
34            android:theme="@style/Theme.Dialer.BidiText"
35            android:layout_width="wrap_content"
36            android:layout_height="wrap_content"
37            android:textAppearance="@style/TextAppearance.InCallUserTitle"
38            android:singleLine="true"/>
39        <TextView
40            android:id="@+id/user_profile_phone_number"
41            android:layout_width="wrap_content"
42            android:layout_height="wrap_content"
43            android:theme="@style/Theme.Dialer.BidiText"
44            android:textAppearance="@style/TextAppearance.InCallUserPhoneNumber"
45            android:singleLine="true"
46            android:layout_marginTop="@dimen/in_call_phone_number_margin_top"/>
47
48        <!-- A textView without a fixed width will call requestLayout() every time its text is changed -->
49        <!-- So we have to make this Chronometer match_parent to avoid redrawing the whole screen -->
50        <Chronometer
51            android:id="@+id/user_profile_call_state"
52            android:layout_width="match_parent"
53            android:layout_height="wrap_content"
54            android:textAppearance="@style/TextAppearance.InCallState"
55            android:singleLine="true"
56            android:layout_marginTop="@dimen/in_call_state_margin_top"/>
57    </LinearLayout>
58</LinearLayout>
59