Skip to content

Instantly share code, notes, and snippets.

@camaelon
Created June 22, 2018 19:03
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

Uh oh!

There was an error while loading. Please reload this page.

@IngweLand
Copy link

Should be androidx.constraintlayout.motion.widget.MotionLayout

Uh oh!

There was an error while loading. Please reload this page.

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