| <?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/car_ui_toolbar_first_row_height" /> |
| |
| <com.android.car.ui.toolbar.Toolbar |
| android:id="@+id/toolbar" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| app:title="@string/app_name" |
| app:layout_constraintTop_toTopOf="parent" |
| app:logo="@drawable/logo_fm_radio" |
| app:car_ui_state="home"/> |
| |
| <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/toolbar" |
| 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/toolbar" |
| 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> |