1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright 2016, The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17<androidx.constraintlayout.widget.ConstraintLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:id="@+id/media_activity_root" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent"> 23 24 <FrameLayout 25 android:id="@+id/fragment_container" 26 android:layout_width="match_parent" 27 android:layout_height="0dp" 28 android:visibility="visible" 29 app:layout_constraintTop_toTopOf="parent" 30 app:layout_constraintBottom_toBottomOf="parent"/> 31 32 <FrameLayout 33 android:id="@+id/search_container" 34 android:layout_width="match_parent" 35 android:layout_height="0dp" 36 android:visibility="gone" 37 app:layout_constraintTop_toTopOf="parent" 38 app:layout_constraintBottom_toBottomOf="parent"/> 39 40 <FrameLayout 41 android:id="@+id/error_container" 42 android:layout_width="match_parent" 43 android:layout_height="0dp" 44 android:visibility="gone" 45 app:layout_constraintTop_toBottomOf="@+id/app_bar" 46 app:layout_constraintBottom_toBottomOf="parent"> 47 </FrameLayout> 48 49 <com.android.car.media.widgets.AppBarView 50 android:id="@+id/app_bar" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 app:showMenuItemsWhileSearching="false" 54 app:layout_constraintTop_toTopOf="parent"/> 55 56 <com.android.car.media.common.MinimizedPlaybackControlBar 57 android:id="@+id/minimized_playback_controls" 58 android:layout_width="match_parent" 59 android:layout_height="wrap_content" 60 android:layout_marginHorizontal="@dimen/minimized_control_bar_margin_x" 61 android:layout_marginBottom="@dimen/minimized_control_bar_margin_bottom" 62 app:layout_constraintStart_toStartOf="parent" 63 app:layout_constraintEnd_toEndOf="parent" 64 app:layout_constraintBottom_toBottomOf="parent"/> 65 66 <FrameLayout 67 android:id="@+id/playback_container" 68 android:layout_width="match_parent" 69 android:layout_height="0dp" 70 android:visibility="gone" 71 app:layout_constraintTop_toTopOf="parent" 72 app:layout_constraintBottom_toBottomOf="parent"/> 73 74</androidx.constraintlayout.widget.ConstraintLayout> 75