| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2018 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <androidx.constraintlayout.widget.ConstraintLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| |
| <androidx.constraintlayout.widget.Guideline |
| android:id="@+id/app_bar_bottom" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal" |
| app:layout_constraintGuide_begin="@dimen/appbar_first_row_height" /> |
| |
| |
| <com.android.car.apps.common.widget.CarTabLayout |
| android:id="@+id/tabs" |
| android:layout_width="0dp" |
| android:layout_height="@dimen/tab_height" |
| android:layout_marginLeft="@dimen/tab_margin_left" |
| android:layout_marginRight="@dimen/tab_margin_right" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintEnd_toStartOf="@+id/band_toggle_button" |
| app:layout_constraintTop_toTopOf="parent"/> |
| |
| <com.android.car.radio.widget.BandSelectorToggle |
| android:id="@+id/band_toggle_button" |
| android:layout_width="@dimen/band_selector_size" |
| android:layout_height="@dimen/band_selector_size" |
| android:layout_marginTop="@dimen/control_button_margin" |
| android:layout_marginRight="@dimen/control_button_margin" |
| android:scaleType="center" |
| app:layout_constraintEnd_toStartOf="@+id/app_switch_container" |
| app:layout_constraintTop_toTopOf="parent" /> |
| |
| <com.android.car.media.common.MediaAppSelectorWidget |
| android:id="@+id/app_switch_container" |
| android:layout_width="@dimen/app_switch_widget_width" |
| android:layout_height="wrap_content" |
| app:layout_constraintTop_toTopOf="parent" |
| app:layout_constraintBottom_toBottomOf="@+id/app_bar_bottom" |
| app:layout_constraintRight_toRightOf="parent" |
| android:padding="@dimen/app_switch_widget_icon_padding" |
| android:orientation="horizontal" |
| android:background="@drawable/appbar_view_icon_background" |
| android:gravity="center" /> |
| |
| <androidx.viewpager.widget.ViewPager |
| android:id="@+id/viewpager" |
| android:layout_width="@dimen/radio_activity_pager_size" |
| android:layout_height="@dimen/radio_activity_pager_size" |
| android:layout_marginTop="@dimen/browse_list_padding" |
| android:layout_weight="@integer/radio_activity_view_weight" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintTop_toBottomOf="@+id/tabs" |
| app:layout_constraintBottom_toTopOf="@+id/main_radio_display" /> |
| |
| <TextView |
| android:id="@+id/status_message" |
| app:layout_constraintStart_toStartOf="parent" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintTop_toBottomOf="@+id/tabs" |
| app:layout_constraintBottom_toTopOf="@+id/main_radio_display" |
| android:visibility="gone" |
| style="@style/RadioStatusMessage" /> |
| |
| <include layout="@layout/radio_playback_card" |
| android:id="@+id/main_radio_display" |
| android:layout_width="@dimen/radio_activity_playback_width" |
| android:layout_height="@dimen/playback_card_height" |
| android:layout_marginBottom="@dimen/playback_card_margin_bottom" |
| android:layout_marginLeft="@dimen/playback_card_margin_horizontal" |
| android:layout_marginRight="@dimen/playback_card_margin_horizontal" |
| app:layout_constraintBottom_toBottomOf="parent" |
| app:layout_constraintEnd_toEndOf="parent" |
| app:layout_constraintStart_toStartOf="parent" /> |
| </androidx.constraintlayout.widget.ConstraintLayout> |