Created
October 25, 2022 12:32
-
-
Save rodrigomartind/085985318b41ec304fd343aa0dddf0d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<MotionScene xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:motion="http://schemas.android.com/apk/res-auto"> | |
<Transition | |
android:id="@+id/forward" | |
motion:constraintSetEnd="@+id/next" | |
motion:constraintSetStart="@id/start" | |
motion:duration="1000"> | |
<OnSwipe | |
motion:dragDirection="dragRight" | |
motion:touchAnchorSide="right" /> | |
</Transition> | |
<Transition | |
android:id="@+id/backward" | |
motion:constraintSetEnd="@+id/previous" | |
motion:constraintSetStart="@id/start" | |
motion:duration="1000"> | |
<OnSwipe | |
motion:dragDirection="dragLeft" | |
motion:touchAnchorSide="left" /> | |
</Transition> | |
<ConstraintSet android:id="@+id/previous"> | |
<Constraint android:id="@+id/imageView0"> | |
<Layout | |
android:layout_width="120dp" | |
android:layout_height="120dp" | |
motion:layout_constraintBottom_toBottomOf="parent" | |
motion:layout_constraintEnd_toEndOf="parent" | |
motion:layout_constraintStart_toStartOf="parent" | |
motion:layout_constraintTop_toTopOf="parent" /> | |
<Transform android:rotation="-360" /> | |
</Constraint> | |
<Constraint android:id="@+id/imageView1"> | |
<Layout | |
android:layout_width="100dp" | |
android:layout_height="100dp" | |
android:layout_marginEnd="16dp" | |
motion:layout_constraintBottom_toBottomOf="@id/imageView0" | |
motion:layout_constraintEnd_toStartOf="@id/imageView0" | |
motion:layout_constraintTop_toTopOf="@id/imageView0" /> | |
<Transform android:rotationY="-360" /> | |
</Constraint> | |
<Constraint android:id="@+id/imageView2"> | |
<Layout | |
android:layout_width="80dp" | |
android:layout_height="80dp" | |
android:layout_marginTop="24dp" | |
motion:layout_constraintEnd_toEndOf="@id/imageView0" | |
motion:layout_constraintStart_toStartOf="@id/imageView0" | |
motion:layout_constraintTop_toBottomOf="@id/imageView0" /> | |
<Transform android:rotationX="-360" /> | |
</Constraint> | |
<Constraint android:id="@+id/imageView3"> | |
<Layout | |
android:layout_width="60dp" | |
android:layout_height="60dp" | |
android:layout_marginStart="34dp" | |
motion:layout_constraintBottom_toBottomOf="@id/imageView0" | |
motion:layout_constraintStart_toEndOf="@id/imageView0" | |
motion:layout_constraintTop_toTopOf="@id/imageView0" /> | |
</Constraint> | |
<Constraint android:id="@+id/imageView4"> | |
<Layout | |
android:layout_width="40dp" | |
android:layout_height="40dp" | |
android:layout_marginBottom="56dp" | |
motion:layout_constraintBottom_toTopOf="@id/imageView0" | |
motion:layout_constraintEnd_toEndOf="@id/imageView0" | |
motion:layout_constraintStart_toStartOf="@id/imageView0" /> | |
</Constraint> | |
<Constraint android:id="@+id/imageView5"> | |
<Layout | |
android:layout_width="40dp" | |
android:layout_height="40dp" | |
motion:layout_constraintBottom_toTopOf="@id/imageView0" | |
motion:layout_constraintEnd_toEndOf="@id/imageView0" | |
motion:layout_constraintStart_toStartOf="@id/imageView0" /> | |
<PropertySet android:alpha="0" /> | |
</Constraint> | |
</ConstraintSet> | |
<ConstraintSet android:id="@+id/start" /> | |
<ConstraintSet android:id="@+id/next"> | |
<Constraint android:id="@+id/imageView1"> | |
<Layout | |
android:layout_width="140dp" | |
android:layout_height="140dp" | |
motion:layout_constraintStart_toEndOf="parent" | |
motion:layout_constraintTop_toTopOf="parent" /> | |
<Transform android:rotation="360" /> | |
</Constraint> | |
<Constraint android:id="@+id/imageView2"> | |
<Layout | |
android:layout_width="120dp" | |
android:layout_height="120dp" | |
motion:layout_constraintBottom_toBottomOf="parent" | |
motion:layout_constraintEnd_toEndOf="parent" | |
motion:layout_constraintStart_toStartOf="parent" | |
motion:layout_constraintTop_toTopOf="parent" /> | |
<Transform android:rotationY="360" /> | |
</Constraint> | |
<Constraint android:id="@+id/imageView3"> | |
<Layout | |
android:layout_width="100dp" | |
android:layout_height="100dp" | |
android:layout_marginEnd="16dp" | |
motion:layout_constraintBottom_toBottomOf="@id/imageView2" | |
motion:layout_constraintEnd_toStartOf="@id/imageView2" | |
motion:layout_constraintTop_toTopOf="@id/imageView2" /> | |
<Transform android:rotationX="360" /> | |
</Constraint> | |
<Constraint android:id="@+id/imageView4"> | |
<Layout | |
android:layout_width="80dp" | |
android:layout_height="80dp" | |
android:layout_marginTop="24dp" | |
motion:layout_constraintEnd_toEndOf="@id/imageView2" | |
motion:layout_constraintStart_toStartOf="@id/imageView2" | |
motion:layout_constraintTop_toBottomOf="@id/imageView2" /> | |
</Constraint> | |
<Constraint android:id="@+id/imageView5"> | |
<Layout | |
android:layout_width="60dp" | |
android:layout_height="60dp" | |
android:layout_marginStart="34dp" | |
motion:layout_constraintBottom_toBottomOf="@id/imageView2" | |
motion:layout_constraintStart_toEndOf="@id/imageView2" | |
motion:layout_constraintTop_toTopOf="@id/imageView2" /> | |
</Constraint> | |
<Constraint android:id="@+id/imageView6"> | |
<Layout | |
android:layout_width="40dp" | |
android:layout_height="40dp" | |
android:layout_marginBottom="56dp" | |
motion:layout_constraintBottom_toTopOf="@id/imageView2" | |
motion:layout_constraintEnd_toEndOf="@id/imageView2" | |
motion:layout_constraintStart_toStartOf="@id/imageView2" /> | |
<PropertySet android:alpha="1" /> | |
</Constraint> | |
</ConstraintSet> | |
</MotionScene> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment