0

我正在寻找我的问题的答案

为什么不推荐使用组活动

我没有找到任何正确的答案。我的第二个问题是

为什么我们必须使用Fragment而不是Group Activity

我需要详细回答这些问题。

4

1 回答 1

2

您可以通过阅读Android 3.0 Fragments API博客获得详细答案。相关点之一是:

Embedded Activities via ActivityGroup were a nice idea, but have always been difficult to deal with since Activity is designed to be an independent self-contained component instead of closely interacting with other activities. The Fragment API is a much better solution for this, and should be considered as a replacement for embedded activities.

您还可以查看是否建议使用片段构建所有应用程序?问题。希望它有所帮助。

于 2013-06-06T06:30:17.143 回答