Skip to content

Instantly share code, notes, and snippets.

@shkcodes
Created April 4, 2020 10:52
Show Gist options
  • Save shkcodes/205dea7d9d1e84723edc3b9493bd1e8a to your computer and use it in GitHub Desktop.
Save shkcodes/205dea7d9d1e84723edc3b9493bd1e8a to your computer and use it in GitHub Desktop.
Layout file
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.motion.widget.MotionLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layoutDescription="@xml/scene_2">
<View
android:id="@+id/rectangle"
android:layout_width="0dp"
android:layout_height="200dp"
android:background="#FA24"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.motion.widget.MotionLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment