1<?xml version="1.0" encoding="utf-8"?><!-- 2 ~ Copyright (C) 2024 The Android Open Source Project 3 ~ 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 ~ you may not use this file except in compliance with the License. 6 ~ You may obtain a copy of the License at 7 ~ 8 ~ http://www.apache.org/licenses/LICENSE-2.0 9 ~ 10 ~ Unless required by applicable law or agreed to in writing, software 11 ~ distributed under the License is distributed on an "AS IS" BASIS, 12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ~ See the License for the specific language governing permissions and 14 ~ limitations under the License. 15 --> 16 17<MotionScene xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto"> 19 20 <Transition 21 android:id="@+id/show_floating_sheet" 22 app:constraintSetStart="@id/floating_sheet_gone" 23 app:constraintSetEnd="@id/floating_sheet_visible" /> 24 25 <ConstraintSet android:id="@+id/floating_sheet_gone"> 26 <Constraint 27 android:id="@+id/preview_pager" 28 android:layout_width="0dp" 29 android:layout_height="0dp" 30 android:layout_marginTop="@dimen/handheld_small_preview_pager_margin_top" 31 android:layout_marginBottom="@dimen/handheld_small_preview_pager_margin_bottom" 32 app:layout_constraintEnd_toEndOf="parent" 33 app:layout_constraintStart_toStartOf="parent" 34 app:layout_constraintTop_toTopOf="parent" 35 app:layout_constraintBottom_toTopOf="@+id/preview_action_group_container" /> 36 37 <Constraint 38 android:id="@+id/preview_action_group_container" 39 android:layout_width="0dp" 40 android:layout_height="wrap_content" 41 android:alpha="1" 42 android:layout_marginBottom="@dimen/handheld_small_preview_action_group_margin_bottom" 43 app:layout_constraintTop_toBottomOf="@+id/preview_pager" 44 app:layout_constraintStart_toStartOf="parent" 45 app:layout_constraintEnd_toEndOf="parent" 46 app:layout_constraintBottom_toBottomOf="parent" /> 47 48 <Constraint 49 android:id="@+id/floating_sheet" 50 android:layout_width="0dp" 51 android:layout_height="wrap_content" 52 android:layout_marginBottom="@dimen/handheld_small_preview_action_group_margin_bottom" 53 app:layout_constraintStart_toStartOf="parent" 54 app:layout_constraintEnd_toEndOf="parent" 55 app:layout_constraintTop_toBottomOf="parent" /> 56 </ConstraintSet> 57 58 <ConstraintSet android:id="@+id/floating_sheet_visible"> 59 <Constraint 60 android:id="@+id/preview_pager" 61 android:layout_width="0dp" 62 android:layout_height="0dp" 63 android:layout_marginTop="@dimen/handheld_small_preview_pager_margin_top" 64 android:layout_marginBottom="@dimen/handheld_small_preview_pager_margin_bottom" 65 app:layout_constraintBottom_toTopOf="@+id/floating_sheet" 66 app:layout_constraintEnd_toEndOf="parent" 67 app:layout_constraintStart_toStartOf="parent" 68 app:layout_constraintTop_toTopOf="parent" /> 69 70 <Constraint 71 android:id="@+id/preview_action_group_container" 72 android:layout_width="0dp" 73 android:layout_height="wrap_content" 74 android:alpha="0" 75 android:layout_marginBottom="@dimen/handheld_small_preview_action_group_margin_bottom" 76 app:layout_constraintTop_toBottomOf="@+id/preview_pager" 77 app:layout_constraintStart_toStartOf="parent" 78 app:layout_constraintEnd_toEndOf="parent" 79 app:layout_constraintBottom_toBottomOf="parent" /> 80 81 <Constraint 82 android:id="@+id/floating_sheet" 83 android:layout_width="0dp" 84 android:layout_height="wrap_content" 85 android:layout_marginBottom="@dimen/handheld_small_preview_action_group_margin_bottom" 86 app:layout_constraintStart_toStartOf="parent" 87 app:layout_constraintEnd_toEndOf="parent" 88 app:layout_constraintBottom_toBottomOf="parent" /> 89 </ConstraintSet> 90 91 <ConstraintSet android:id="@+id/show_apply_wallpaper"> 92 <Constraint 93 android:id="@+id/preview_pager" 94 android:layout_width="0dp" 95 android:layout_height="match_parent" 96 app:layout_constraintEnd_toEndOf="parent" 97 app:layout_constraintStart_toStartOf="parent" 98 app:layout_constraintTop_toTopOf="parent" 99 app:layout_constraintBottom_toTopOf="@+id/preview_action_group_container" /> 100 101 <Constraint 102 android:id="@+id/preview_action_group_container" 103 android:layout_width="0dp" 104 android:layout_height="wrap_content" 105 android:visibility="gone" 106 app:layout_constraintTop_toBottomOf="@+id/preview_pager" 107 app:layout_constraintStart_toStartOf="parent" 108 app:layout_constraintEnd_toEndOf="parent" 109 app:layout_constraintBottom_toBottomOf="parent" /> 110 111 <Constraint 112 android:id="@+id/floating_sheet" 113 android:layout_width="0dp" 114 android:layout_height="wrap_content" 115 android:visibility="gone" 116 app:layout_constraintStart_toStartOf="parent" 117 app:layout_constraintEnd_toEndOf="parent" 118 app:layout_constraintTop_toBottomOf="parent" /> 119 </ConstraintSet> 120</MotionScene>