1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2016 The Android Open Source Project 3 4Licensed under the Apache License, Version 2.0 (the "License"); 5you may not use this file except in compliance with the License. 6You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10Unless required by applicable law or agreed to in writing, software 11distributed under the License is distributed on an "AS IS" BASIS, 12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13See the License for the specific language governing permissions and 14limitations 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 <!-- Row 1 --> 23 <!-- Put back when voicemail is supported: app:image="@drawable/ic_voicemail" --> 24 <com.android.car.dialer.ui.dialpad.KeypadButton 25 android:id="@+id/one" 26 app:numberText="@string/one" 27 app:letterText="@string/one_letters" 28 style="@style/KeypadButtonStyle" 29 app:layout_constraintHorizontal_chainStyle="packed" 30 app:layout_constraintVertical_chainStyle="packed" 31 app:layout_constraintTop_toTopOf="parent" 32 app:layout_constraintBottom_toTopOf="@+id/four" 33 app:layout_constraintLeft_toLeftOf="parent" 34 app:layout_constraintRight_toLeftOf="@+id/two"/> 35 36 <com.android.car.dialer.ui.dialpad.KeypadButton 37 android:id="@+id/two" 38 app:numberText="@string/two" 39 app:letterText="@string/two_letters" 40 style="@style/KeypadButtonStyle" 41 app:layout_constraintVertical_chainStyle="packed" 42 app:layout_constraintTop_toTopOf="parent" 43 app:layout_constraintBottom_toTopOf="@+id/five" 44 app:layout_constraintLeft_toRightOf="@id/one" 45 app:layout_constraintRight_toLeftOf="@+id/three"/> 46 47 <com.android.car.dialer.ui.dialpad.KeypadButton 48 android:id="@+id/three" 49 app:numberText="@string/three" 50 app:letterText="@string/three_letters" 51 style="@style/KeypadButtonStyle" 52 app:layout_constraintVertical_chainStyle="packed" 53 app:layout_constraintTop_toTopOf="parent" 54 app:layout_constraintBottom_toTopOf="@+id/six" 55 app:layout_constraintLeft_toRightOf="@id/two" 56 app:layout_constraintRight_toRightOf="parent"/> 57 58 <!-- Row 2 --> 59 <com.android.car.dialer.ui.dialpad.KeypadButton 60 android:id="@+id/four" 61 app:numberText="@string/four" 62 app:letterText="@string/four_letters" 63 style="@style/KeypadButtonStyle" 64 app:layout_constraintHorizontal_chainStyle="packed" 65 app:layout_constraintTop_toBottomOf="@id/one" 66 app:layout_constraintBottom_toTopOf="@+id/seven" 67 app:layout_constraintLeft_toLeftOf="parent" 68 app:layout_constraintRight_toLeftOf="@+id/five"/> 69 70 <com.android.car.dialer.ui.dialpad.KeypadButton 71 android:id="@+id/five" 72 app:numberText="@string/five" 73 app:letterText="@string/five_letters" 74 style="@style/KeypadButtonStyle" 75 app:layout_constraintTop_toBottomOf="@id/two" 76 app:layout_constraintBottom_toTopOf="@+id/eight" 77 app:layout_constraintLeft_toRightOf="@id/four" 78 app:layout_constraintRight_toLeftOf="@+id/six"/> 79 80 <com.android.car.dialer.ui.dialpad.KeypadButton 81 android:id="@+id/six" 82 app:numberText="@string/six" 83 app:letterText="@string/six_letters" 84 style="@style/KeypadButtonStyle" 85 app:layout_constraintTop_toBottomOf="@id/three" 86 app:layout_constraintBottom_toTopOf="@+id/nine" 87 app:layout_constraintLeft_toRightOf="@id/five" 88 app:layout_constraintRight_toRightOf="parent"/> 89 90 91 <!-- Row 3 --> 92 <com.android.car.dialer.ui.dialpad.KeypadButton 93 android:id="@+id/seven" 94 app:numberText="@string/seven" 95 app:letterText="@string/seven_letters" 96 style="@style/KeypadButtonStyle" 97 app:layout_constraintHorizontal_chainStyle="packed" 98 app:layout_constraintTop_toBottomOf="@id/four" 99 app:layout_constraintBottom_toTopOf="@+id/star" 100 app:layout_constraintLeft_toLeftOf="parent" 101 app:layout_constraintRight_toLeftOf="@+id/eight"/> 102 103 <com.android.car.dialer.ui.dialpad.KeypadButton 104 android:id="@+id/eight" 105 app:numberText="@string/eight" 106 app:letterText="@string/eight_letters" 107 style="@style/KeypadButtonStyle" 108 app:layout_constraintTop_toBottomOf="@id/five" 109 app:layout_constraintBottom_toTopOf="@+id/zero" 110 app:layout_constraintLeft_toRightOf="@id/seven" 111 app:layout_constraintRight_toLeftOf="@+id/nine"/> 112 113 <com.android.car.dialer.ui.dialpad.KeypadButton 114 android:id="@+id/nine" 115 app:numberText="@string/nine" 116 app:letterText="@string/nine_letters" 117 style="@style/KeypadButtonStyle" 118 app:layout_constraintTop_toBottomOf="@id/six" 119 app:layout_constraintBottom_toTopOf="@+id/pound" 120 app:layout_constraintLeft_toRightOf="@id/eight" 121 app:layout_constraintRight_toRightOf="parent"/> 122 123 <!-- Row 4 --> 124 <com.android.car.dialer.ui.dialpad.KeypadButton 125 android:id="@+id/star" 126 app:numberText="@string/star" 127 app:letterText="@string/star_letters" 128 style="@style/KeypadButtonStyle" 129 app:layout_constraintHorizontal_chainStyle="packed" 130 app:layout_constraintTop_toBottomOf="@id/seven" 131 app:layout_constraintBottom_toBottomOf="parent" 132 app:layout_constraintLeft_toLeftOf="parent" 133 app:layout_constraintRight_toLeftOf="@+id/zero"/> 134 135 <com.android.car.dialer.ui.dialpad.KeypadButton 136 android:id="@+id/zero" 137 app:numberText="@string/zero" 138 app:letterText="@string/zero_letters" 139 style="@style/KeypadButtonStyle" 140 app:layout_constraintTop_toBottomOf="@id/eight" 141 app:layout_constraintBottom_toBottomOf="parent" 142 app:layout_constraintLeft_toRightOf="@id/star" 143 app:layout_constraintRight_toLeftOf="@+id/pound"/> 144 145 <com.android.car.dialer.ui.dialpad.KeypadButton 146 android:id="@+id/pound" 147 app:numberText="@string/pound" 148 app:letterText="@string/pound_letters" 149 style="@style/KeypadButtonStyle" 150 app:layout_constraintTop_toBottomOf="@id/nine" 151 app:layout_constraintBottom_toBottomOf="parent" 152 app:layout_constraintLeft_toRightOf="@id/zero" 153 app:layout_constraintRight_toRightOf="parent"/> 154 155</androidx.constraintlayout.widget.ConstraintLayout> 156