Fragment 加入动画

参考: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); 

posted on 2015-05-09 19:09  wjw334  阅读(172)  评论(0编辑  收藏  举报

导航