Open chufengma opened 9 years ago
Fragment之间的事务是有先后顺序的。如果要设置动画,.setCustomAnimations 必须在replace前面:
getSupportFragmentManager().beginTransaction() .setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out) .replace(R.id.container, getResetPasswordFragment(phoneNumber, code), SubmitNewPasswordFragment.class.toString()) .addToBackStack("") .commit();
Fragment之间的事务是有先后顺序的。如果要设置动画,.setCustomAnimations 必须在replace前面: