Skip to content

Instantly share code, notes, and snippets.

@PiotrPrus
Created September 27, 2019 06:55
Show Gist options
  • Save PiotrPrus/aecc7dff3316e8694266fd2490cd0404 to your computer and use it in GitHub Desktop.
Save PiotrPrus/aecc7dff3316e8694266fd2490cd0404 to your computer and use it in GitHub Desktop.
The end swipe scene xml description for motion layout
<ConstraintSet android:id="@+id/endSwipeScene">
<Constraint
android:id="@+id/rootCL"
motion:visibilityMode="ignore"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:rotation="45"
android:scaleX="0.95"
android:scaleY="0.95"
android:translationX="600dp" />
<Constraint
android:id="@+id/backgroundIV"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:adjustViewBounds="true"
android:scaleType="centerCrop"
motion:visibilityMode="ignore" />
<Constraint
android:id="@+id/mainIV"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="8dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="16dp"
android:adjustViewBounds="true"
android:rotation="45"
android:scaleType="centerCrop"
android:scaleX="0.95"
android:scaleY="0.95"
android:translationX="600dp"
motion:visibilityMode="ignore" />
</ConstraintSet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment