예제 #1
0
 @Override
 public void startActivityForResult(Intent intent, int requestCode) {
   super.startActivityForResult(intent, requestCode);
   if (isOverridePendingTransition() && getPendingTransitionMode() != null) {
     switch (getPendingTransitionMode()) {
       case RIGHT:
         overridePendingTransition(R.anim.in_from_right, R.anim.out_from_left);
         // overridePendingTransition(android.R.anim.slide_in_left,android.R.anim.slide_out_right);
         break;
       case TOP:
         // overridePendingTransition(R.anim.in_from_buttom, R.anim.out_from_top);
         overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
         break;
     }
   }
 }
 @Override
 public void startActivityForResult(Intent intent, int requestCode) {
   super.startActivityForResult(intent, requestCode);
   overridePendingTransition(R.anim.slide_left_out, R.anim.slide_left_in);
 }