Skip to content

Instantly share code, notes, and snippets.

@camaelon
Created June 22, 2018 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save camaelon/cc6192a76baf3569b95ba11b05f7e863 to your computer and use it in GitHub Desktop.
Save camaelon/cc6192a76baf3569b95ba11b05f7e863 to your computer and use it in GitHub Desktop.
motion_01_basic
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.motion.MotionLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/motionLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layoutDescription="@xml/scene_01"
tools:showPaths="true">
<View
android:id="@+id/button"
android:layout_width="64dp"
android:layout_height="64dp"
android:background="@color/colorAccent"
android:text="Button" />
</android.support.constraint.motion.MotionLayout>
@MasoudFallahpour
Copy link

MasoudFallahpour commented Jul 31, 2020

tools:showPaths should be app:showPaths

@IngweLand
Copy link

Should be androidx.constraintlayout.motion.widget.MotionLayout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment