Last active
July 26, 2020 15:48
-
-
Save rodrigomartind/3fafd42ee4a96cf49682709408d8d32d 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
<MotionScene ...> | |
<Transition | |
app:constraintSetEnd="@+id/leftCard" | |
app:constraintSetStart="@id/start" | |
app:duration="1000"> | |
<OnSwipe | |
app:dragDirection="dragLeft" | |
app:onTouchUp="autoComplete" | |
app:touchRegionId="@id/cardCenter" /> | |
</Transition> | |
<!-- ============================ --> | |
<ConstraintSet android:id="@+id/start"> | |
<Constraint android:id="@+id/cardCenter"> | |
<Layout | |
... /> | |
<Transform | |
... /> | |
</Constraint> | |
<Constraint android:id="@+id/cardRight1"> | |
<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> | |
</ConstraintSet> | |
<ConstraintSet android:id="@+id/leftCard"> | |
<Constraint android:id="@+id/cardCenter"> | |
<Layout | |
... /> | |
<Transform | |
... /> | |
</Constraint> | |
<Constraint android:id="@+id/cardRight1"> | |
<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