1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 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="center"
18    android:orientation="vertical">
19    <ImageView
20        android:id="@+id/user_profile_avatar"
21        android:layout_width="@dimen/in_call_avatar_icon_size"
22        android:layout_height="@dimen/in_call_avatar_icon_size"
23        android:scaleType="fitCenter" />
24    <TextView
25        android:id="@+id/user_profile_title"
26        android:layout_width="wrap_content"
27        android:layout_height="wrap_content"
28        android:textAppearance="@style/TextAppearance.InCallUserTitle"
29        android:paddingTop="@dimen/in_call_margin_between_avatar_and_text"
30        android:singleLine="true"/>
31    <TextView
32        android:id="@+id/user_profile_phone_number"
33        android:layout_width="wrap_content"
34        android:layout_height="wrap_content"
35        android:textAppearance="@style/TextAppearance.InCallUserPhoneNumber"
36        android:singleLine="true"
37        android:paddingTop="@dimen/in_call_phone_number_margin_top"/>
38
39    <!-- A textView without a fixed width will call requestLayout() every time its text is changed -->
40    <!-- So we have to make this Chronometer match_parent to avoid redrawing the whole screen -->
41    <Chronometer
42        android:id="@+id/user_profile_call_state"
43        android:layout_width="match_parent"
44        android:layout_height="wrap_content"
45        android:textAppearance="@style/TextAppearance.InCallState"
46        android:singleLine="true"
47        android:paddingTop="@dimen/in_call_state_margin_top"
48        android:gravity="center"/>
49</LinearLayout>
50