Skip to content

Instantly share code, notes, and snippets.

@yashwantGowla
Last active March 12, 2021 11:29
Show Gist options
  • Save yashwantGowla/de8cfc20d371998a9755852b4e81a556 to your computer and use it in GitHub Desktop.
Save yashwantGowla/de8cfc20d371998a9755852b4e81a556 to your computer and use it in GitHub Desktop.
<?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
motion:constraintSetStart="@layout/motion"
motion:constraintSetEnd="@+id/image"
motion:duration="2000">
<onClick motion:target="@+id/button" />
<onSwipe
motion:touchAnchorId="@+id/target_view"
motion:touchAnchorSide="side" (Option available are "left", "right", "top", and "bottom")
motion:dragDirection="direction" (Option available are "dragLeft", "dragRight", "dragUp", and "dragDown")
motion:dragScale="scale"
motion:maxVelocity="maxVelocity"
motion:maxAcceleration="maxAcceleration" />
</Transition>
</MotionScene>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment