1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2018 The Android Open Source Project 3 Licensed under the Apache License, Version 2.0 (the "License"); 4 you may not use this file except in compliance with the License. 5 You may obtain a copy of the License at 6 http://www.apache.org/licenses/LICENSE-2.0 7 Unless required by applicable law or agreed to in writing, software 8 distributed under the License is distributed on an "AS IS" BASIS, 9 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 See the License for the specific language governing permissions and 11 limitations under the License. 12--> 13<androidx.constraintlayout.widget.ConstraintLayout 14 xmlns:android="http://schemas.android.com/apk/res/android" 15 xmlns:app="http://schemas.android.com/apk/res-auto" 16 android:layout_width="match_parent" 17 android:layout_height="match_parent"> 18 19 <fragment 20 android:id="@+id/dialpad_fragment" 21 android:name="com.android.car.dialer.ui.dialpad.KeypadFragment" 22 android:layout_height="wrap_content" 23 android:layout_width="wrap_content" 24 android:layout_marginTop="@dimen/keypad_margin" 25 app:layout_constraintTop_toBottomOf="@+id/title" 26 app:layout_constraintBottom_toTopOf="@+id/call_button" 27 app:layout_constraintStart_toStartOf="parent" 28 app:layout_constraintEnd_toEndOf="parent"/> 29 30 <TextView 31 android:id="@+id/title" 32 android:layout_width="0dp" 33 android:layout_height="wrap_content" 34 android:focusable="true" 35 android:singleLine="true" 36 android:textAppearance="@style/TextAppearance.DialNumber" 37 android:layout_marginStart="@dimen/dialpad_info_edge_padding_size" 38 app:layout_constraintVertical_chainStyle="packed" 39 app:layout_constraintTop_toTopOf="parent" 40 app:layout_constraintBottom_toTopOf="@id/dialpad_fragment" 41 app:layout_constraintStart_toStartOf="@id/dialpad_fragment" 42 app:layout_constraintEnd_toStartOf="@+id/delete_button" 43 app:layout_goneMarginEnd="@dimen/dialpad_info_edge_padding_size"/> 44 45 <ImageButton 46 android:id="@+id/delete_button" 47 style="@style/DialpadSecondaryButton" 48 android:src="@drawable/ic_backspace" 49 android:layout_marginStart="@dimen/dialpad_info_title_padding_size" 50 android:layout_marginEnd="@dimen/dialpad_info_edge_padding_size" 51 app:layout_constraintTop_toTopOf="@id/title" 52 app:layout_constraintBottom_toBottomOf="@id/title" 53 app:layout_constraintStart_toEndOf="@id/title" 54 app:layout_constraintEnd_toEndOf="@id/dialpad_fragment"/> 55 56 <TextView 57 android:id="@+id/display_name" 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 android:textAppearance="@style/TextAppearance.DialpadDisplayName" 61 android:focusable="true" 62 android:singleLine="true" 63 app:layout_constraintTop_toBottomOf="@id/title" 64 app:layout_constraintBottom_toTopOf="@id/dialpad_fragment" 65 app:layout_constraintStart_toStartOf="parent" 66 app:layout_constraintEnd_toEndOf="parent"/> 67 68 <ImageView 69 android:id="@+id/call_button" 70 style="@style/DialpadPrimaryButton" 71 android:layout_width="wrap_content" 72 android:layout_height="@dimen/call_button_height" 73 android:src="@drawable/icon_call_button" 74 android:layout_marginBottom="@dimen/call_button_bottom_margin" 75 app:layout_constraintBottom_toBottomOf="parent" 76 app:layout_constraintStart_toStartOf="parent" 77 app:layout_constraintEnd_toEndOf="parent"/> 78 79</androidx.constraintlayout.widget.ConstraintLayout> 80