如何解决是否可以为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 {
解决方法
这是Google工程师在这个问题上要说的。