1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2022 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<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 <com.android.wallpaper.picker.TouchForwardingLayout 23 android:id="@+id/touch_forwarding_layout" 24 android:layout_width="match_parent" 25 android:layout_height="match_parent" 26 android:background="@android:color/transparent"/> 27 28 <FrameLayout 29 android:id="@+id/hide_floating_sheet_touch_layout" 30 android:layout_width="match_parent" 31 android:layout_height="match_parent" 32 android:background="@android:color/transparent" 33 android:clickable="true"/> 34 35 <include layout="@layout/wallpaper_preview" /> 36 37 <View 38 android:id="@+id/preview_scrim" 39 android:layout_width="match_parent" 40 android:layout_height="match_parent" 41 android:background="@drawable/gradient_black_scrim" 42 android:importantForAccessibility="noHideDescendants" /> 43 44 <androidx.constraintlayout.widget.ConstraintLayout 45 android:layout_width="match_parent" 46 android:layout_height="match_parent" 47 android:background="@android:color/transparent" 48 android:fitsSystemWindows="true"> 49 50 <Toolbar 51 android:id="@+id/toolbar" 52 android:layout_width="0dp" 53 android:layout_height="?android:attr/actionBarSize" 54 app:layout_constraintTop_toTopOf="parent" 55 app:layout_constraintStart_toStartOf="parent" 56 app:layout_constraintEnd_toStartOf="@+id/barrier_start" /> 57 58 <Button 59 android:id="@+id/button_set_wallpaper" 60 android:layout_width="wrap_content" 61 android:layout_height="wrap_content" 62 android:layout_gravity="center_vertical" 63 android:background="@drawable/set_wallpaper_button_background" 64 android:elevation="@dimen/wallpaper_preview_buttons_elevation" 65 android:gravity="center" 66 android:text="@string/set_wallpaper_button_text" 67 android:textColor="@color/text_color_on_accent" 68 android:layout_marginEnd="@dimen/set_wallpaper_button_margin_end" 69 app:layout_constraintEnd_toEndOf="parent" 70 app:layout_constraintTop_toTopOf="@+id/toolbar" 71 app:layout_constraintBottom_toBottomOf="@+id/toolbar" /> 72 73 <View 74 android:id="@+id/exit_full_preview_button" 75 android:layout_width="@dimen/wallpaper_control_button_size" 76 android:layout_height="@dimen/wallpaper_control_button_size" 77 android:layout_gravity="center_vertical" 78 android:foreground="@drawable/exit_full_preview_cross" 79 android:elevation="@dimen/wallpaper_preview_buttons_elevation" 80 android:gravity="center" 81 android:layout_marginEnd="@dimen/set_wallpaper_button_margin_end" 82 android:visibility="gone" 83 android:clickable="true" 84 app:layout_constraintEnd_toEndOf="parent" 85 app:layout_constraintTop_toTopOf="@+id/toolbar" 86 app:layout_constraintBottom_toBottomOf="@+id/toolbar" /> 87 88 <com.android.wallpaper.widget.WallpaperDownloadButton 89 android:id="@+id/button_download_wallpaper" 90 android:layout_width="@dimen/wallpaper_control_button_size" 91 android:layout_height="@dimen/wallpaper_control_button_size" 92 android:layout_marginEnd="@dimen/wallpaper_control_button_group_margin_end" 93 android:elevation="@dimen/wallpaper_preview_buttons_elevation" 94 app:layout_constraintEnd_toEndOf="parent" 95 app:layout_constraintTop_toTopOf="@+id/toolbar" 96 app:layout_constraintBottom_toBottomOf="@+id/toolbar" 97 android:visibility="gone"/> 98 99 <androidx.constraintlayout.widget.Barrier 100 android:id="@+id/barrier_start" 101 android:layout_width="wrap_content" 102 android:layout_height="wrap_content" 103 app:barrierDirection="start" 104 app:constraint_referenced_ids="button_set_wallpaper, button_download_wallpaper" /> 105 106 <androidx.constraintlayout.widget.Barrier 107 android:id="@+id/barrier_bottom" 108 android:layout_width="wrap_content" 109 android:layout_height="wrap_content" 110 app:barrierDirection="bottom" 111 app:constraint_referenced_ids="button_set_wallpaper, button_download_wallpaper" /> 112 113 <com.android.wallpaper.widget.WallpaperControlButtonGroup 114 android:id="@+id/wallpaper_control_button_group" 115 android:layout_width="wrap_content" 116 android:layout_height="wrap_content" 117 android:layout_marginTop="@dimen/wallpaper_control_button_group_margin_top" 118 android:layout_marginEnd="@dimen/wallpaper_control_button_group_margin_end" 119 app:layout_constraintEnd_toEndOf="parent" 120 app:layout_constraintTop_toBottomOf="@+id/barrier_bottom" /> 121 122 <com.android.wallpaper.widget.DuoTabs 123 android:id="@+id/overlay_tabs" 124 android:layout_width="match_parent" 125 android:layout_height="wrap_content" 126 android:paddingHorizontal="@dimen/full_preview_page_tabs_horizontal_padding" 127 app:layout_constraintBottom_toBottomOf="parent" 128 app:layout_constraintStart_toStartOf="parent" /> 129 130 <ProgressBar 131 android:id="@+id/action_progress" 132 android:layout_width="@dimen/effect_generating_progress_bar_size" 133 android:layout_height="@dimen/effect_generating_progress_bar_size" 134 android:indeterminateTint="?android:attr/textColorSecondary" 135 android:visibility="gone" 136 app:layout_constraintBottom_toBottomOf="parent" 137 app:layout_constraintEnd_toEndOf="parent" 138 app:layout_constraintTop_toTopOf="parent" 139 app:layout_constraintStart_toStartOf="parent" /> 140 </androidx.constraintlayout.widget.ConstraintLayout> 141 142 <com.android.wallpaper.widget.FloatingSheet 143 android:id="@+id/floating_sheet" 144 android:layout_height="match_parent" 145 android:layout_width="match_parent" /> 146 147</FrameLayout> 148