Last active
July 26, 2020 23:42
-
-
Save rodrigomartind/764c70ec8ee899f4424fc3f8ee8d8401 to your computer and use it in GitHub Desktop.
This file contains hidden or 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:app="http://schemas.android.com/apk/res-auto"> | |
... | |
<Transition | |
app:constraintSetEnd="@+id/firstCard" | |
app:constraintSetStart="@id/start" | |
app:duration="1000"> | |
<OnSwipe | |
app:dragDirection="dragRight" | |
app:onTouchUp="autoComplete" | |
app:touchRegionId="@id/cardCenter" /> | |
<KeyFrameSet> | |
<KeyPosition | |
app:framePosition="50" | |
app:keyPositionType="pathRelative" | |
app:motionTarget="@+id/cardCenter" | |
app:percentX="1.75" /> | |
</KeyFrameSet> | |
</Transition> | |
<!-- ================= --> | |
<ConstraintSet android:id="@+id/start"> | |
... | |
</ConstraintSet> | |
<ConstraintSet android:id="@+id/secondCard"> | |
... | |
</ConstraintSet> | |
<ConstraintSet android:id="@+id/firstCard"> | |
<Constraint android:id="@+id/cardCenter"> | |
<Layout | |
android:layout_width="212dp" | |
android:layout_height="135dp" | |
app:layout_constraintCircle="@+id/guide" | |
app:layout_constraintCircleAngle="20" | |
app:layout_constraintCircleRadius="290dp" /> | |
<Transform | |
android:elevation="4dp" | |
android:rotation="110" /> | |
</Constraint> | |
<Constraint android:id="@+id/cardRight1"> | |
<Layout | |
android:layout_width="212dp" | |
android:layout_height="135dp" | |
app:layout_constraintCircle="@+id/guide" | |
app:layout_constraintCircleAngle="40" | |
app:layout_constraintCircleRadius="290dp" /> | |
<Transform | |
android:elevation="3dp" | |
android:rotation="130" /> | |
</Constraint> | |
<Constraint android:id="@+id/cardLeft1"> | |
<Layout | |
android:layout_width="318dp" | |
android:layout_height="202dp" | |
app:layout_constraintCircle="@+id/guide" | |
app:layout_constraintCircleAngle="0" | |
app:layout_constraintCircleRadius="290dp" /> | |
<Transform | |
android:elevation="5dp" | |
android:rotation="90" /> | |
</Constraint> | |
</ConstraintSet> | |
</MotionScene> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment