1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2024 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.motion.widget.MotionLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:id="@+id/small_preview_screen" 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 app:layoutDescription="@xml/small_preview_fragment_layout_scene"> 30 31 <include 32 android:id="@+id/toolbar_container" 33 layout="@layout/section_header_content" 34 android:layout_width="match_parent" 35 android:layout_height="0dp" 36 app:layout_constraintTop_toTopOf="parent" 37 app:layout_constraintStart_toStartOf="parent" 38 app:layout_constraintEnd_toEndOf="parent"/> 39 40 <Button 41 android:id="@+id/button_next" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:layout_marginEnd="@dimen/set_wallpaper_button_margin_end" 45 android:background="@drawable/apply_button_background_variant" 46 android:elevation="@dimen/wallpaper_preview_buttons_elevation" 47 android:gravity="center" 48 android:minWidth="@dimen/apply_button_width" 49 android:minHeight="@dimen/touch_target_min_height" 50 android:text="@string/next_page_content_description" 51 android:textColor="@color/system_on_primary" 52 android:textAppearance="@style/WallpaperPicker.Preview.TextAppearance.NoAllCaps" 53 app:layout_constraintEnd_toEndOf="parent" 54 app:layout_constraintTop_toTopOf="@id/toolbar_container" 55 app:layout_constraintBottom_toBottomOf="@id/toolbar_container"/> 56 57 <androidx.constraintlayout.motion.widget.MotionLayout 58 android:id="@+id/small_preview_container" 59 android:layout_width="match_parent" 60 android:layout_height="0dp" 61 app:layout_constraintTop_toBottomOf="@id/toolbar_container" 62 app:layout_constraintBottom_toBottomOf="parent" 63 app:layout_constraintStart_toStartOf="parent" 64 app:layout_constraintEnd_toEndOf="parent" 65 app:layoutDescription="@xml/small_preview_container_layout_scene"> 66 67 <include layout="@layout/small_preview_pager_handheld" 68 android:id="@+id/preview_pager"/> 69 70 <HorizontalScrollView 71 android:id="@+id/preview_action_group_container" 72 android:layout_width="wrap_content" 73 android:layout_height="0dp" 74 android:scrollbars="none"> 75 76 <com.android.wallpaper.picker.preview.ui.view.PreviewActionGroup 77 android:id="@+id/action_button_group" 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" 80 android:layout_gravity="center_horizontal"/> 81 </HorizontalScrollView> 82 83 <com.android.wallpaper.picker.preview.ui.view.PreviewActionFloatingSheet 84 android:id="@+id/floating_sheet" 85 android:layout_width="match_parent" 86 android:layout_height="wrap_content"/> 87 </androidx.constraintlayout.motion.widget.MotionLayout> 88 89 <ViewStub 90 android:id="@+id/full_preview_tooltip_stub" 91 android:inflatedId="@+id/tooltip" 92 android:layout="@layout/tooltip_full_preview" 93 android:layout_height="match_parent" 94 android:layout_width="match_parent" 95 android:visibility="gone" 96 app:layout_constraintTop_toTopOf="parent" 97 app:layout_constraintStart_toStartOf="parent" 98 app:layout_constraintEnd_toEndOf="parent" 99 app:layout_constraintBottom_toBottomOf="parent"/> 100</androidx.constraintlayout.motion.widget.MotionLayout> 101