1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2019 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
23      <FrameLayout
24          android:id="@+id/loading"
25          android:layout_width="match_parent"
26          android:layout_height="match_parent"
27          android:background="@android:color/black"
28          android:forceHasOverlappingRendering="false">
29
30          <androidx.core.widget.ContentLoadingProgressBar
31              android:id="@+id/loading_indicator"
32              style="@android:style/Widget.DeviceDefault.ProgressBar"
33              android:layout_width="wrap_content"
34              android:layout_height="wrap_content"
35              android:layout_gravity="center"
36              android:indeterminate="true"/>
37
38    </FrameLayout>
39
40    <FrameLayout
41        android:layout_width="match_parent"
42        android:layout_height="match_parent"
43        android:fitsSystemWindows="true">
44
45        <androidx.coordinatorlayout.widget.CoordinatorLayout
46            android:id="@+id/coordinator_layout"
47            android:layout_width="match_parent"
48            android:layout_height="wrap_content"
49            android:layout_gravity="bottom">
50
51            <LinearLayout
52                android:id="@+id/bottom_sheet"
53                android:layout_width="match_parent"
54                android:layout_height="wrap_content"
55                android:orientation="vertical"
56                android:background="@drawable/preview_bottom_sheet_background"
57                android:theme="@style/WallpaperPicker.BottomPaneStyle"
58                app:behavior_peekHeight="@dimen/preview_attribution_pane_collapsed_height"
59                app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
60
61                <com.google.android.material.tabs.TabLayout
62                    android:id="@+id/tablayout"
63                    android:layout_width="match_parent"
64                    android:layout_height="wrap_content"
65                    app:tabTextAppearance="@style/WallpaperPicker.Preview.TextAppearance.NoAllCaps"
66                    app:tabIndicatorColor="?android:attr/textColorPrimary"
67                    android:visibility="gone"/>
68
69                <com.android.wallpaper.widget.ConstraintViewPager
70                    android:id="@+id/viewpager"
71                    android:layout_width="match_parent"
72                    android:layout_height="wrap_content" />
73
74            </LinearLayout>
75
76        </androidx.coordinatorlayout.widget.CoordinatorLayout>
77
78        <View
79            android:layout_width="match_parent"
80            android:layout_height="@dimen/preview_gradient_background_height"
81            android:layout_gravity="top"
82            android:background="@drawable/gradient_background"/>
83
84        <androidx.appcompat.widget.Toolbar
85            android:id="@+id/toolbar"
86            android:layout_width="match_parent"
87            android:layout_height="wrap_content"
88            android:layout_gravity="top"
89            style="@style/TranslucentToolbarStyle"/>
90
91    </FrameLayout>
92
93</FrameLayout>
94