Skip to content

Instantly share code, notes, and snippets.

@ZZANZU
Last active December 10, 2023 11:07
Show Gist options
  • Select an option

  • Save ZZANZU/66366b07b6c459c7dd94bc86359b624c to your computer and use it in GitHub Desktop.

Select an option

Save ZZANZU/66366b07b6c459c7dd94bc86359b624c to your computer and use it in GitHub Desktop.

Revisions

  1. ZZANZU revised this gist Dec 10, 2023. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions motionlayout_step_1.xml
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,20 @@
    <androidx.constraintlayout.widget.ConstraintLayout
    <androidx.constraintlayout.motion.widget.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:layout_width="match_parent"
    android:layout_height="match_parent"
    app:layoutDescription="@xml/MotionScene을 정의한 xml파일"
    tools:context=".MainActivity">

    <ImageView
    android:id="@+id/iv_main"
    android:layout_width="200dp"
    android:layout_height="200dp"
    android:src="@drawable/example_image"
    android:src="@drawable/profile"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    />

    </androidx.constraintlayout.widget.ConstraintLayout>
    </androidx.constraintlayout.motion.widget.MotionLayout>
  2. ZZANZU created this gist Dec 10, 2023.
    19 changes: 19 additions & 0 deletions motionlayout_step_1.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    <androidx.constraintlayout.widget.ConstraintLayout
    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:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <ImageView
    android:id="@+id/iv_main"
    android:layout_width="200dp"
    android:layout_height="200dp"
    android:src="@drawable/example_image"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    />

    </androidx.constraintlayout.widget.ConstraintLayout>