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<androidx.constraintlayout.widget.ConstraintLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 22 <androidx.constraintlayout.widget.Guideline 23 android:layout_width="wrap_content" 24 android:layout_height="wrap_content" 25 android:id="@+id/dialpad_info_guideline" 26 android:orientation="horizontal" 27 app:layout_constraintGuide_begin="@dimen/dialpad_info_guideline"/> 28 29 <TextView 30 android:id="@+id/title" 31 android:layout_width="0dp" 32 android:layout_height="@dimen/dialpad_info_title_container_size" 33 android:maxLines="1" 34 android:textAppearance="@style/TextAppearance.DialNumber" 35 android:gravity="center" 36 android:autoSizeTextType="uniform" 37 android:autoSizeMinTextSize="@dimen/dialpad_info_title_text_size_min" 38 android:autoSizeMaxTextSize="@dimen/dialpad_info_title_text_size_max" 39 app:layout_constraintTop_toTopOf="parent" 40 app:layout_constraintBottom_toBottomOf="@id/dialpad_info_guideline" 41 app:layout_constraintLeft_toLeftOf="parent" 42 app:layout_constraintRight_toLeftOf="@+id/delete_button"/> 43 44 <ImageButton 45 android:id="@+id/delete_button" 46 style="@style/DialpadSecondaryButton" 47 android:src="@drawable/ic_backspace" 48 android:layout_marginLeft="@dimen/dialpad_info_title_padding_size" 49 android:layout_marginRight="@dimen/dialpad_info_margin_end" 50 app:layout_constraintTop_toTopOf="@id/title" 51 app:layout_constraintBottom_toBottomOf="@id/title" 52 app:layout_constraintLeft_toRightOf="@id/title" 53 app:layout_constraintRight_toRightOf="parent"/> 54 55 <ImageView 56 android:id="@+id/call_button" 57 style="@style/DialpadPrimaryButton" 58 android:src="@drawable/icon_call_button" 59 android:layout_marginBottom="@dimen/dialpad_info_edge_padding_size" 60 app:layout_constraintBottom_toBottomOf="parent" 61 app:layout_constraintStart_toStartOf="parent" 62 app:layout_constraintEnd_toEndOf="parent"/> 63 64 <include 65 layout="@layout/dialpad_user_profile" 66 android:layout_width="match_parent" 67 android:layout_height="0dp" 68 android:layout_marginTop="@dimen/dialpad_user_profile_padding" 69 app:layout_constraintTop_toBottomOf="@id/title" 70 app:layout_constraintBottom_toTopOf="@id/call_button" 71 app:layout_constraintStart_toStartOf="parent" 72 app:layout_constraintEnd_toEndOf="parent"/> 73 74 <include 75 layout="@layout/list_fragment" 76 android:layout_width="match_parent" 77 android:layout_height="0dp" 78 android:layout_marginBottom="@dimen/dialpad_user_profile_padding" 79 app:layout_constraintTop_toBottomOf="@id/title" 80 app:layout_constraintBottom_toTopOf="@id/call_button" 81 app:layout_constraintStart_toStartOf="parent" 82 app:layout_constraintEnd_toEndOf="parent"/> 83 84</androidx.constraintlayout.widget.ConstraintLayout> 85