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:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:textAppearance="@style/TextAppearance.InCallUserTitle" 37 android:singleLine="true"/> 38 <TextView 39 android:id="@+id/user_profile_phone_number" 40 android:layout_width="wrap_content" 41 android:layout_height="wrap_content" 42 android:textAppearance="@style/TextAppearance.InCallUserPhoneNumber" 43 android:singleLine="true" 44 android:layout_marginTop="@dimen/in_call_phone_number_margin_top"/> 45 46 <!-- A textView without a fixed width will call requestLayout() every time its text is changed --> 47 <!-- So we have to make this Chronometer match_parent to avoid redrawing the whole screen --> 48 <Chronometer 49 android:id="@+id/user_profile_call_state" 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:textAppearance="@style/TextAppearance.InCallState" 53 android:singleLine="true" 54 android:layout_marginTop="@dimen/in_call_state_margin_top"/> 55 </LinearLayout> 56</LinearLayout> 57