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<androidx.constraintlayout.motion.widget.MotionLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:id="@+id/small_preview_screen" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:orientation="vertical" 24 android:fitsSystemWindows="true" 25 android:transitionGroup="true" 26 android:clipChildren="false" 27 android:clipToPadding="false" 28 app:layoutDescription="@xml/small_preview_fragment_layout_scene"> 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_next" 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/apply_button_background_variant" 45 android:elevation="@dimen/wallpaper_preview_buttons_elevation" 46 android:gravity="center" 47 android:minWidth="@dimen/apply_button_width" 48 android:minHeight="@dimen/touch_target_min_height" 49 android:text="@string/next_page_content_description" 50 android:textColor="@color/system_on_primary" 51 android:textAppearance="@style/WallpaperPicker.Preview.TextAppearance.NoAllCaps" 52 app:layout_constraintEnd_toEndOf="parent" 53 app:layout_constraintTop_toTopOf="@id/toolbar_container" 54 app:layout_constraintBottom_toBottomOf="@id/toolbar_container"/> 55 56 <!-- TODO: Create a new layout xml for reusing for both handheld and foldable --> 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_foldable" 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