6
我尝试了各种关于片段动画的示例,但没有任何反应,因此DialogFragment不是“正确的”片段?或者我在这里错过了什么?是否可以为DialogFragment设置动画效果?
FragmentTransaction ft = getFragmentManager().beginTransaction();
InfoDialogFragment newFragment = InfoDialogFragment.newInstance();
newFragment.setAsset(mainShow, c,backgroundDrawable);
ft.setCustomAnimations(R.anim.grow_in, R.anim.fadeout);
ft.add(newFragment, "dialog");
ft.commit();
...
public class InfoDialogFragment extends DialogFragment {