Skip to content

Instantly share code, notes, and snippets.

@thedoapps
Last active August 29, 2015 14:04
Show Gist options
  • Save thedoapps/55188bb23fdd55143757 to your computer and use it in GitHub Desktop.
Save thedoapps/55188bb23fdd55143757 to your computer and use it in GitHub Desktop.
His code is used for anim translation.
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android" >
<translate
xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="@android:integer/config_longAnimTime"
android:fromXDelta="0"
android:toXDelta="-100%p" />
<alpha
xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="1000"
android:fromAlpha="1"
android:toAlpha="0" />
</set>
@thedoapps
Copy link
Author

How use? Example:

startActivity(new Intent(getApplicationContext(),
LoginActivity.class));
SplashActivity.this.overridePendingTransition(R.anim.entrada,
R.anim.salida);
finish();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment