| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright 2016, 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. |
| --> |
| <android.support.constraint.ConstraintLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:id="@+id/application" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| |
| <com.android.car.media.common.CrossfadeImageView |
| android:id="@+id/media_background" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="@android:color/black" |
| android:scaleType="centerCrop"/> |
| |
| <View |
| android:id="@+id/media_scrim" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="@drawable/browse_gradient_scrim" |
| android:alpha="@dimen/media_scrim_darkened_alpha"/> |
| |
| <FrameLayout |
| android:id="@+id/fragment_container" |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:visibility="visible" |
| app:layout_constraintTop_toBottomOf="@+id/app_bar" |
| app:layout_constraintBottom_toTopOf="@+id/browse_controls_container"/> |
| |
| <FrameLayout |
| android:id="@+id/playback_container" |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:visibility="gone" |
| app:layout_constraintTop_toBottomOf="@+id/app_bar" |
| app:layout_constraintBottom_toBottomOf="parent"/> |
| |
| <LinearLayout |
| android:id="@+id/browse_controls_container" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:padding="@dimen/car_padding_4" |
| android:background="@color/browse_playback_bg" |
| android:orientation="horizontal" |
| android:gravity="center_vertical" |
| app:layout_constraintBottom_toBottomOf="parent"> |
| |
| <com.android.car.media.common.PlaybackControlsActionBar |
| android:id="@+id/browse_controls" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="0.5" |
| android:layout_marginRight="@dimen/car_padding_4" |
| app:columns="3"/> |
| |
| <com.android.car.media.widgets.MetadataView |
| android:id="@+id/browse_metadata" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="0.5"/> |
| |
| </LinearLayout> |
| |
| <FrameLayout |
| android:id="@+id/app_selection_container" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" /> |
| |
| <com.android.car.media.widgets.AppBarView |
| android:id="@+id/app_bar" |
| android:layout_height="@dimen/car_app_bar_height" |
| android:layout_width="match_parent" |
| app:layout_constraintTop_toTopOf="parent"/> |
| |
| </android.support.constraint.ConstraintLayout> |