google-developer-training/advanced-android-kotlin-motionlayout

Wrong namespace declaration motion: instead of app:

Opened this issue · 0 comments

The xml files are declaring xmlns:motion="http://schemas.android.com/apk/res-auto", while the layout files are declaring xmlns:app="http://schemas.android.com/apk/res-auto".

In Step 11 the codelab suggests to add some declarations to the layout file with the motion namespace, but in the actual code app is used.

The suggestion from the codelab that fails:

<androidx.constraintlayout.motion.widget.MotionLayout
       android:id="@+id/motion_layout"
       android:layout_width="match_parent"
       android:layout_height="match_parent"
       motion:layoutDescription="@xml/step8"
       motion:motionDebug="SHOW_PATH"
       android:minHeight="80dp"
       motion:layout_scrollFlags="scroll|enterAlways|snap|exitUntilCollapsed"  >