1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2020 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<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:background="?android:colorBackground">
23
24    <!-- Preview header (toolbar + status bar) is used to solve preview with full screen animated
25         to non-full screen cases. -->
26    <FrameLayout
27        android:id="@+id/preview_header"
28        android:layout_width="match_parent"
29        android:layout_height="wrap_content"
30        android:paddingBottom="?android:attr/actionBarSize">
31    </FrameLayout>
32
33    <FrameLayout
34        android:id="@+id/separated_tabs_container"
35        android:layout_width="match_parent"
36        android:layout_height="wrap_content"
37        android:layout_gravity="bottom"
38        android:layout_marginBottom="@dimen/bottom_actions_height"
39        android:paddingHorizontal="@dimen/separated_tabs_horizontal_padding">
40        <include layout="@layout/separated_tabs" />
41    </FrameLayout>
42
43    <FrameLayout
44        android:id="@+id/screen_preview_layout"
45        android:layout_width="match_parent"
46        android:layout_height="match_parent"
47        android:layout_marginTop="?android:attr/actionBarSize"
48        android:layout_marginBottom="@dimen/bottom_actions_plus_separated_tabs">
49
50        <androidx.constraintlayout.widget.ConstraintLayout
51            android:id="@+id/container"
52            android:layout_width="match_parent"
53            android:layout_height="match_parent"
54            android:layout_gravity="center"
55            android:clipChildren="false"
56            android:clipToPadding="false"
57            android:padding="@dimen/full_preview_page_default_padding_top">
58
59            <com.android.wallpaper.picker.TouchForwardingLayout
60                android:id="@+id/touch_forwarding_layout"
61                android:layout_width="0dp"
62                android:layout_height="0dp"
63                android:background="@android:color/transparent"
64                app:layout_constraintLeft_toLeftOf="parent"
65                app:layout_constraintRight_toRightOf="parent"
66                app:layout_constraintTop_toTopOf="parent"
67                app:layout_constraintBottom_toBottomOf="parent">
68                <include layout="@layout/wallpaper_preview_card" />
69            </com.android.wallpaper.picker.TouchForwardingLayout>
70        </androidx.constraintlayout.widget.ConstraintLayout>
71    </FrameLayout>
72
73    <FrameLayout
74        android:id="@+id/section_header_container"
75        android:layout_width="match_parent"
76        android:layout_height="wrap_content">
77        <include layout="@layout/section_header" android:id="@+id/toolbar_container"/>
78    </FrameLayout>
79
80    <FrameLayout
81        android:id="@+id/fullscreen_buttons_container"
82        android:layout_width="match_parent"
83        android:layout_height="wrap_content"
84        android:layout_gravity="bottom|center"
85        android:layout_marginBottom="@dimen/fullscreen_preview_button_margin"
86        android:paddingHorizontal="@dimen/fullscreen_preview_buttons_horizontal_margin">
87        <include layout="@layout/fullscreen_buttons" />
88    </FrameLayout>
89
90    <FrameLayout
91        android:id="@+id/bottom_action_bar_container"
92        android:layout_width="wrap_content"
93        android:layout_height="wrap_content"
94        android:layout_gravity="bottom">
95        <include layout="@layout/bottom_action_bar" />
96    </FrameLayout>
97</FrameLayout>
98