1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2023 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<androidx.constraintlayout.widget.ConstraintLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:id="@+id/container" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:orientation="vertical" 25 android:fitsSystemWindows="true" 26 android:transitionGroup="true" 27 android:clipChildren="false" 28 android:clipToPadding="false"> 29 30 <include 31 android:id="@+id/toolbar_container" 32 layout="@layout/section_header_content" 33 android:layout_width="match_parent" 34 android:layout_height="0dp" 35 app:layout_constraintTop_toTopOf="parent" 36 app:layout_constraintStart_toStartOf="parent" 37 app:layout_constraintEnd_toEndOf="parent"/> 38 39 <Button 40 android:id="@+id/button_set_wallpaper" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:layout_marginEnd="@dimen/set_wallpaper_button_margin_end" 44 android:background="@drawable/set_wallpaper_button_background_variant" 45 android:elevation="@dimen/wallpaper_preview_buttons_elevation" 46 android:gravity="center" 47 android:minHeight="@dimen/touch_target_min_height" 48 android:text="@string/set_wallpaper_button_text" 49 android:textColor="@color/system_on_primary" 50 android:textAppearance="@style/WallpaperPicker.Preview.TextAppearance.NoAllCaps" 51 app:layout_constraintEnd_toEndOf="parent" 52 app:layout_constraintTop_toTopOf="@id/toolbar_container" 53 app:layout_constraintBottom_toBottomOf="@id/toolbar_container"/> 54 55 <androidx.viewpager2.widget.ViewPager2 56 android:id="@+id/pager_previews" 57 android:layout_width="match_parent" 58 android:layout_height="0dp" 59 app:layout_constraintTop_toBottomOf="@id/toolbar_container" 60 app:layout_constraintBottom_toTopOf="@id/preview_tabs_container" 61 app:layout_constraintStart_toStartOf="parent" 62 app:layout_constraintEnd_toEndOf="parent" 63 android:clipChildren="false"/> 64 65 <com.android.wallpaper.picker.preview.ui.view.PreviewTabs 66 android:id="@+id/preview_tabs_container" 67 android:layout_width="0dp" 68 android:layout_height="wrap_content" 69 android:layout_marginBottom="36dp" 70 app:layout_constraintBottom_toTopOf="@+id/action_button_group" 71 app:layout_constraintStart_toStartOf="parent" 72 app:layout_constraintEnd_toEndOf="parent" /> 73 74 <com.android.wallpaper.picker.preview.ui.view.PreviewActionFloatingSheet 75 android:id="@+id/floating_sheet" 76 android:layout_height="match_parent" 77 android:layout_width="match_parent" /> 78 79 <com.android.wallpaper.picker.preview.ui.view.PreviewActionGroup 80 android:id="@+id/action_button_group" 81 android:layout_width="wrap_content" 82 android:layout_height="0dp" 83 android:layout_marginBottom="36dp" 84 app:layout_constraintStart_toStartOf="parent" 85 app:layout_constraintEnd_toEndOf="parent" 86 app:layout_constraintBottom_toBottomOf="parent"/> 87 88</androidx.constraintlayout.widget.ConstraintLayout> 89