Skip to content

Instantly share code, notes, and snippets.

@thedoapps
Last active August 29, 2015 14:04
Show Gist options
  • Save thedoapps/30bfad696a2152844672 to your computer and use it in GitHub Desktop.
Save thedoapps/30bfad696a2152844672 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="100%p"
android:toXDelta="0%p" />
<alpha
xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="1000"
android:fromAlpha="0"
android:toAlpha="1" />
</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