Skip to content

Instantly share code, notes, and snippets.

@valterh4ck3r
Last active April 2, 2021 00:48
Show Gist options
  • Save valterh4ck3r/8ee6373601868713f949bd8489d3f734 to your computer and use it in GitHub Desktop.
Save valterh4ck3r/8ee6373601868713f949bd8489d3f734 to your computer and use it in GitHub Desktop.
Android Animation Navigation
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="-100%" android:toXDelta="0%"
android:fromYDelta="0%" android:toYDelta="0%"
android:duration="300"/>
</set>
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="100%" android:toXDelta="0%"
android:fromYDelta="0%" android:toYDelta="0%"
android:duration="200"/>
</set>
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="0%" android:toXDelta="-100%"
android:fromYDelta="0%" android:toYDelta="0%"
android:duration="200"/>
</set>
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<translate android:fromXDelta="0%" android:toXDelta="100%"
android:fromYDelta="0%" android:toYDelta="0%"
android:duration="200"/>
</set>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment