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             android:fitsSystemWindows="false">
23
24  <ImageView
25    android:id="@+id/low_res_image"
26    android:layout_width="match_parent"
27    android:layout_height="match_parent"
28    android:scaleType="centerCrop"
29    android:background="@android:color/black"/>
30
31  <com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView
32      android:id="@+id/full_res_image"
33      android:layout_width="match_parent"
34      android:layout_height="match_parent" />
35
36  <androidx.core.widget.ContentLoadingProgressBar
37      android:id="@+id/loading_indicator"
38      style="@android:style/Widget.DeviceDefault.ProgressBar"
39      android:layout_width="wrap_content"
40      android:layout_height="wrap_content"
41      android:layout_gravity="center"
42      android:indeterminate="true"/>
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
55        <FrameLayout
56            android:id="@+id/bottom_sheet"
57            android:layout_width="match_parent"
58            android:layout_height="wrap_content"
59            android:background="@drawable/preview_bottom_sheet_background"
60            android:theme="@style/WallpaperPicker.BottomPaneStyle"
61            app:behavior_peekHeight="@dimen/preview_attribution_pane_collapsed_height"
62            app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
63          <include
64              layout="@layout/preview_page_info"
65              android:layout_width="match_parent"
66              android:layout_height="wrap_content"/>
67        </FrameLayout>
68
69    </androidx.coordinatorlayout.widget.CoordinatorLayout>
70
71    <View
72        android:layout_width="match_parent"
73        android:layout_height="@dimen/preview_gradient_background_height"
74        android:layout_gravity="top"
75        android:background="@drawable/gradient_background"/>
76    <androidx.appcompat.widget.Toolbar
77        android:id="@+id/toolbar"
78        android:layout_width="match_parent"
79        android:layout_height="wrap_content"
80        android:layout_gravity="top"
81        style="@style/TranslucentToolbarStyle"/>
82
83  </FrameLayout>
84
85</FrameLayout>
86