switch To Activity With Fade Effect - Android android.app

Android examples for android.app:Activity Navigation

Description

switch To Activity With Fade Effect

Demo Code

import android.app.Activity;
import android.content.Intent;

public class Main {

  public static void switchToWithFadeEffect(Activity activity, Intent intent) {
    activity.startActivity(intent);//ww w .j  a v a 2s  .  c om
    activity.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
  }

}

Related Tutorials