全屏使用 DialogFragment 模拟新的 activity 可以吗?

Is it ok to use DialogFragment in fullscreen to simulate a new activity?

我想知道是否可以一直使用 DialogFragments 管理我的应用程序的 "navigation",将它们全屏显示,就好像它们是活动一样。 非常感谢

你可以做到这一点。您也可以反其道而行之(将活动用作对话框,这很奇怪)。

这样做的唯一真正原因是将片段重用为对话框和全屏视图,可能用于不同的屏幕尺寸等。

You might have a UI design in which you want a piece of the UI to appear as a dialog in some situations, but as a full screen or embedded fragment in others (perhaps depending on whether the device is a large screen or small screen). The DialogFragment class offers you this flexibility because it can still behave as an embeddable Fragment.

http://developer.android.com/guide/topics/ui/dialogs.html#FullscreenDialog

通常无缘无故地这样做是一种奇怪的做法