summaryrefslogtreecommitdiff
path: root/res/layout/media_activity.xml
diff options
context:
space:
mode:
Diffstat (limited to 'res/layout/media_activity.xml')
-rw-r--r--res/layout/media_activity.xml48
1 files changed, 45 insertions, 3 deletions
diff --git a/res/layout/media_activity.xml b/res/layout/media_activity.xml
index 4abfe04..e92308d 100644
--- a/res/layout/media_activity.xml
+++ b/res/layout/media_activity.xml
@@ -14,8 +14,50 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<FrameLayout
+<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/fragment_container"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/application"
+ android:animateLayoutChanges="true"
android:layout_width="match_parent"
- android:layout_height="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="@color/media_template_background"
+ android:scaleType="centerCrop"/>
+
+ <View
+ android:id="@+id/media_scrim"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@color/media_scrim_background"
+ android:alpha="@dimen/playback_initial_scrim_alpha"/>
+
+ <View
+ android:id="@+id/browse_scrim"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/browse_gradient_scrim"/>
+
+ <android.support.design.widget.TabLayout
+ android:id="@+id/tabs"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/browse_tab_height"
+ app:tabIndicatorHeight="0dp"
+ app:tabGravity="fill"
+ app:tabMode="fixed"
+ app:tabPadding="0dp"
+ app:tabMaxWidth="0dp"
+ app:layout_constraintTop_toTopOf="parent"/>
+
+ <FrameLayout
+ android:id="@+id/fragment_container"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ app:layout_constraintTop_toBottomOf="@+id/tabs"
+ app:layout_constraintBottom_toBottomOf="parent"/>
+
+</android.support.constraint.ConstraintLayout>