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<!-- This Layout is clickable so that clicks do not fall through to the underlying 17 fragment. --> 18<android.support.constraint.ConstraintLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:layout_marginTop="@dimen/car_app_bar_height" 22 android:background="@color/car_card" 23 android:clickable="true" 24 android:layout_width="match_parent" 25 android:layout_height="match_parent"> 26 27 <android.support.constraint.Guideline 28 android:id="@+id/center_guideline" 29 android:layout_width="wrap_content" 30 android:layout_height="wrap_content" 31 android:orientation="vertical" 32 app:layout_constraintGuide_percent="0.55"/> 33 <ImageView 34 android:id="@+id/exit_manual_tuner_button" 35 android:background="@drawable/radio_control_background" 36 android:layout_marginTop="@dimen/radio_default_spacing" 37 android:layout_marginStart="@dimen/radio_default_spacing" 38 android:layout_width="@dimen/car_touch_target_size" 39 android:layout_height="@dimen/car_touch_target_size" 40 android:scaleType="center" 41 app:layout_constraintStart_toStartOf="parent" 42 app:layout_constraintTop_toTopOf="parent" 43 android:src="@drawable/ic_down_outlined" /> 44 45 <include 46 android:id="@+id/dialpad_layout" 47 app:layout_constraintBottom_toBottomOf="parent" 48 app:layout_constraintTop_toTopOf="parent" 49 app:layout_constraintStart_toStartOf="parent" 50 app:layout_constraintEnd_toStartOf="@+id/center_guideline" 51 android:layout_width="0dp" 52 android:layout_height="@dimen/manual_tuner_container_height" 53 layout="@layout/manual_tuner_dialpad" /> 54 55 <com.android.car.radio.RadioBandButton 56 android:id="@+id/manual_tuner_am_band" 57 android:background="@drawable/radio_control_background" 58 android:layout_marginEnd="@dimen/radio_default_spacing" 59 app:layout_constraintEnd_toStartOf="@+id/manual_tuner_fm_band" 60 app:layout_constraintTop_toTopOf="@+id/dialpad_layout" 61 app:layout_constraintHorizontal_chainStyle="packed" 62 app:layout_constraintStart_toEndOf="@+id/center_guideline" 63 android:text="@string/radio_am_text" 64 style="@style/ManualTunerBandButton" /> 65 <com.android.car.radio.RadioBandButton 66 android:id="@+id/manual_tuner_fm_band" 67 android:background="@drawable/manual_tuner_band_bg" 68 app:layout_constraintBaseline_toBaselineOf="@+id/manual_tuner_am_band" 69 app:layout_constraintEnd_toEndOf="parent" 70 app:layout_constraintStart_toEndOf="@+id/manual_tuner_am_band" 71 android:text="@string/radio_fm_text" 72 style="@style/ManualTunerBandButton" /> 73 74 <TextView 75 android:id="@+id/manual_tuner_channel" 76 android:layout_width="wrap_content" 77 android:layout_height="wrap_content" 78 android:gravity="center" 79 app:layout_constraintTop_toBottomOf="@+id/manual_tuner_am_band" 80 app:layout_constraintEnd_toEndOf="parent" 81 app:layout_constraintStart_toEndOf="@+id/center_guideline" 82 style="@style/ManualTunerChannelText" /> 83 <com.android.car.radio.RadioFabButton 84 android:id="@id/manual_tuner_done_button" 85 android:src="@drawable/ic_done" 86 app:layout_constraintEnd_toEndOf="parent" 87 app:layout_constraintStart_toEndOf="@+id/center_guideline" 88 app:layout_constraintTop_toBottomOf="@+id/manual_tuner_channel" 89 style="@style/RadioFab" /> 90 <ImageView 91 android:id="@+id/manual_tuner_backspace" 92 android:background="@drawable/radio_control_background" 93 android:layout_width="@dimen/manual_tuner_fab_size" 94 android:layout_height="@dimen/manual_tuner_fab_size" 95 android:scaleType="center" 96 app:layout_constraintStart_toEndOf="@+id/manual_tuner_done_button" 97 app:layout_constraintBottom_toBottomOf="@+id/manual_tuner_done_button" 98 android:src="@drawable/ic_backspace" /> 99</android.support.constraint.ConstraintLayout> 100