Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@armcha
Created September 11, 2018 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save armcha/c7429436275fb3360d8d6ef124f86ec3 to your computer and use it in GitHub Desktop.
Save armcha/c7429436275fb3360d8d6ef124f86ec3 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<MotionScene xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<Transition
app:constraintSetEnd="@id/collapsed"
app:constraintSetStart="@id/expanded">
<KeyFrameSet>
<KeyAttribute
app:framePosition="0"
app:target="@id/bottomNavigationView">
<CustomAttribute
app:attributeName="translationY"
app:customDimension="0dp" />
</KeyAttribute>
<KeyAttribute
app:framePosition="75"
app:target="@id/bottomNavigationView">
<CustomAttribute
app:attributeName="translationY"
app:customDimension="55dp" />
</KeyAttribute>
</KeyFrameSet>
</Transition>
<ConstraintSet android:id="@+id/expanded" />
<ConstraintSet android:id="@+id/collapsed" />
</MotionScene>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment