1<!--
2  ~ Copyright (C) 2016 The Android Open Source Project
3  ~
4  ~ Licensed under the Apache License, Version 2.0 (the "License");
5  ~ you may not use this file except in compliance with the License.
6  ~ You may obtain a copy of the License at
7  ~
8  ~      http://www.apache.org/licenses/LICENSE-2.0
9  ~
10  ~ Unless required by applicable law or agreed to in writing, software
11  ~ distributed under the License is distributed on an "AS IS" BASIS,
12  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  ~ See the License for the specific language governing permissions and
14  ~ limitations under the License
15  -->
16
17<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:app="http://schemas.android.com/apk/res-auto"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent">
21
22    <FrameLayout
23        android:id="@+id/loading"
24        android:layout_width="match_parent"
25        android:layout_height="match_parent"
26        android:background="#ff000000"
27        android:forceHasOverlappingRendering="false">
28
29        <ProgressBar
30            style="@android:style/Widget.DeviceDefault.ProgressBar"
31            android:layout_width="wrap_content"
32            android:layout_height="wrap_content"
33            android:layout_gravity="center"
34            android:indeterminate="true"/>
35
36    </FrameLayout>
37
38    <View
39        android:layout_width="match_parent"
40        android:layout_height="@dimen/preview_gradient_background_height"
41        android:layout_gravity="top"
42        android:background="@drawable/gradient_background"/>
43
44    <FrameLayout
45        android:layout_width="match_parent"
46        android:layout_height="match_parent"
47        android:fitsSystemWindows="true">
48
49        <androidx.coordinatorlayout.widget.CoordinatorLayout
50            android:id="@+id/coordinator_layout"
51            android:layout_width="match_parent"
52            android:layout_height="wrap_content"
53            android:layout_gravity="bottom"
54            android:orientation="vertical">
55
56            <LinearLayout
57                android:id="@+id/bottom_pane"
58                android:layout_width="match_parent"
59                android:layout_height="wrap_content"
60                android:background="@color/translucent_black"
61                android:orientation="vertical"
62                app:behavior_peekHeight="@dimen/preview_attribution_pane_collapsed_height"
63                app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
64
65                <com.google.android.material.tabs.TabLayout
66                    android:id="@+id/tablayout"
67                    android:layout_width="match_parent"
68                    android:layout_height="wrap_content"
69                    style="@style/TabLayoutStyle"
70                    android:visibility="gone"/>
71
72                <com.android.wallpaper.livepicker.widget.ConstraintViewPager
73                    android:id="@+id/viewpager"
74                    android:layout_width="match_parent"
75                    android:layout_height="wrap_content"/>
76
77            </LinearLayout>
78
79        </androidx.coordinatorlayout.widget.CoordinatorLayout>
80
81        <android.widget.Toolbar
82            android:id="@+id/toolbar"
83            android:layout_width="match_parent"
84            android:layout_height="wrap_content"
85            android:layout_gravity="top"
86            style="@style/TranslucentToolbarStyle"
87            android:paddingStart="@dimen/preview_toolbar_start_padding"
88            android:paddingEnd="@dimen/preview_toolbar_end_padding"/>
89
90    </FrameLayout>
91
92</FrameLayout>
93