参考:http://blog.csdn.net/flowingflying/article/details/12995519
setTransition
FragmentTransaction ft = getFragmentManager().beginTransaction();
ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
setCustomAnimations
ft.setCustomAnimations(R.animator.slide_in_left,R.animator.slide_out_right);
时间: 2024-10-12 04:10:40