Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
关于在如下调用替换时如何停止淡入淡出动画的任何想法?
FragmentManager fm = activity.getFragmentManager(); FragmentTransaction transaction = fm.beginTransaction(); transaction.replace(Id,Fragment,Tag);
简单的:
transaction.setCustomAnimations(0,0);
您还可以使用此方法通过传递对R.anim.资源的引用来设置所需的任何自定义动画。
R.anim.