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_apply_wallpaper_screen"
22        app:constraintSetStart="@id/show_full_page"
23        app:constraintSetEnd="@id/hide_page_header" />
24
25    <ConstraintSet android:id="@+id/show_full_page">
26        <Constraint
27            android:id="@+id/toolbar_container"
28            android:layout_width="match_parent"
29            android:layout_height="wrap_content"
30            android:visibility="visible"
31            app:layout_constraintTop_toTopOf="parent"
32            app:layout_constraintStart_toStartOf="parent"
33            app:layout_constraintEnd_toEndOf="parent" />
34
35        <Constraint
36            android:id="@+id/button_next"
37            android:layout_width="wrap_content"
38            android:layout_height="wrap_content"
39            android:layout_marginEnd="@dimen/set_wallpaper_button_margin_end"
40            android:alpha="1"
41            app:layout_constraintEnd_toEndOf="parent"
42            app:layout_constraintTop_toTopOf="@id/toolbar_container"
43            app:layout_constraintBottom_toBottomOf="@id/toolbar_container" />
44
45        <Constraint
46            android:id="@+id/small_preview_container"
47            android:layout_width="match_parent"
48            android:layout_height="0dp"
49            app:layout_constraintTop_toBottomOf="@id/toolbar_container"
50            app:layout_constraintBottom_toBottomOf="parent"
51            app:layout_constraintStart_toStartOf="parent"
52            app:layout_constraintEnd_toEndOf="parent" />
53    </ConstraintSet>
54
55    <ConstraintSet android:id="@+id/hide_page_header">
56        <Constraint
57            android:id="@+id/toolbar_container"
58            android:layout_width="match_parent"
59            android:layout_height="wrap_content"
60            android:visibility="gone"
61            app:layout_constraintTop_toTopOf="parent"
62            app:layout_constraintStart_toStartOf="parent"
63            app:layout_constraintEnd_toEndOf="parent" />
64
65        <Constraint
66            android:id="@+id/button_next"
67            android:layout_width="wrap_content"
68            android:layout_height="wrap_content"
69            android:layout_marginEnd="@dimen/set_wallpaper_button_margin_end"
70            android:alpha="0"
71            app:layout_constraintEnd_toEndOf="parent"
72            app:layout_constraintTop_toTopOf="@id/toolbar_container"
73            app:layout_constraintBottom_toBottomOf="@id/toolbar_container" />
74
75        <Constraint
76            android:id="@+id/small_preview_container"
77            android:layout_width="match_parent"
78            android:layout_height="0dp"
79            app:layout_constraintTop_toBottomOf="@+id/toolbar_container"
80            app:layout_constraintBottom_toBottomOf="parent"
81            app:layout_constraintStart_toStartOf="parent"
82            app:layout_constraintEnd_toEndOf="parent" />
83    </ConstraintSet>
84</MotionScene>