1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2018 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:clickable="true" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent"> 22 23 <!-- Using LTR text direction since this textView displays bidi strings that should always have 24 LTR direction. Otherwise, the period character in "123." would be interpreted as end of 25 the sentence. This results in ".123" in RTL text direction which is not what we want. --> 26 <TextView 27 android:id="@+id/manual_tuner_channel" 28 android:layout_width="wrap_content" 29 android:layout_height="wrap_content" 30 android:gravity="center" 31 android:textAppearance="@android:style/TextAppearance.DeviceDefault.Large" 32 android:textColor="@color/manual_tuner_button_text_color" 33 android:textDirection="ltr" 34 app:layout_constraintBottom_toTopOf="@+id/dialpad_layout" 35 app:layout_constraintEnd_toEndOf="parent" 36 app:layout_constraintStart_toStartOf="parent" 37 app:layout_constraintTop_toBottomOf="@+id/manual_tuner_band_selector" /> 38 39 <com.android.car.radio.widget.BandSelectorFlat 40 android:id="@+id/manual_tuner_band_selector" 41 app:layout_constraintTop_toTopOf="parent" 42 app:layout_constraintBottom_toTopOf="@+id/manual_tuner_channel" 43 app:layout_constraintStart_toStartOf="parent" 44 app:layout_constraintEnd_toEndOf="parent" 45 android:layout_width="wrap_content" 46 android:layout_height="wrap_content" /> 47 48 <include 49 android:id="@+id/dialpad_layout" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 app:layout_constraintBottom_toTopOf="@+id/manual_tuner_done_button" 53 app:layout_constraintEnd_toEndOf="parent" 54 app:layout_constraintStart_toStartOf="parent" 55 app:layout_constraintTop_toBottomOf="@+id/manual_tuner_channel" 56 layout="@layout/tuner_dialpad" /> 57 58 <Button 59 android:id="@+id/manual_tuner_done_button" 60 android:layout_width="@dimen/tune_button_width" 61 android:layout_height="@dimen/tune_button_height" 62 app:layout_constraintBottom_toBottomOf="parent" 63 app:layout_constraintEnd_toEndOf="parent" 64 app:layout_constraintStart_toStartOf="parent" 65 app:layout_constraintTop_toBottomOf="@+id/dialpad_layout" 66 android:textColor="@color/manual_tuner_digit_color" 67 android:textAllCaps="false" 68 android:text="@string/enter_text" 69 android:background="@drawable/manual_tuner_button_background" /> 70</androidx.constraintlayout.widget.ConstraintLayout> 71