1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2023 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
18<!-- Layout for media recommendations inside QSPanel carousel -->
19<com.android.systemui.util.animation.TransitionLayout
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    android:id="@+id/media_recommendations_updated"
22    android:layout_width="match_parent"
23    android:layout_height="wrap_content"
24    android:clipChildren="false"
25    android:clipToPadding="false"
26    android:forceHasOverlappingRendering="false"
27    android:background="@drawable/qs_media_background"
28    android:theme="@style/MediaPlayer">
29
30    <!-- This view just ensures the full media player is a certain height. -->
31    <View
32        android:id="@+id/sizing_view"
33        android:layout_width="match_parent"
34        android:layout_height="@dimen/qs_media_session_height_expanded" />
35
36    <TextView
37        android:id="@+id/media_rec_title"
38        style="@style/MediaPlayer.Recommendation.Header"
39        android:text="@string/controls_media_smartspace_rec_header"/>
40
41    <FrameLayout
42        android:id="@+id/media_cover1_container"
43        style="@style/MediaPlayer.Recommendation.AlbumContainer.Updated"
44        >
45
46        <include
47            layout="@layout/media_recommendation_view"/>
48
49    </FrameLayout>
50
51
52    <FrameLayout
53        android:id="@+id/media_cover2_container"
54        style="@style/MediaPlayer.Recommendation.AlbumContainer.Updated"
55        >
56
57        <include
58            layout="@layout/media_recommendation_view"/>
59
60    </FrameLayout>
61
62    <FrameLayout
63        android:id="@+id/media_cover3_container"
64        style="@style/MediaPlayer.Recommendation.AlbumContainer.Updated"
65        >
66
67        <include
68            layout="@layout/media_recommendation_view"/>
69
70    </FrameLayout>
71
72    <include
73        layout="@layout/media_long_press_menu" />
74
75</com.android.systemui.util.animation.TransitionLayout>
76