0
A
回答
2
您可以通过阅读The 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.
你也可以看看Is it advised to build all apps using fragments?问题。希望它有帮助。
相关问题
- 1. 为什么#import已被弃用?
- 2. 为什么TabListener已被弃用?
- 3. 为什么InstanceMethods模块已被弃用?
- 4. 为什么absolutelayout已被弃用?
- 5. 为什么GenFsm已被弃用?
- 6. 为什么render_component已被弃用?
- 7. 为什么create = dynamic已被弃用?
- 8. 为什么“组表表视图背景色”已被弃用?
- 9. 为什么MapMaker.softKeys()已弃用?
- 10. 为什么ProviderSignInUtils.getConnection已弃用
- 11. 为什么buildSessionFactory()已弃用?
- 12. 为什么event.returnValue已被弃用?这是什么意思?
- 13. presentModalViewController:动画已被弃用
- 14. 为什么属性“sonar.profile”被标记为已弃用?
- 15. 为什么Cursor.requery()标记为“已弃用”?
- 16. 为什么VS告诉我MySqlCommand.Parameters.Add已被弃用?
- 17. 为什么Java的“新BigDecimal(double)”已被弃用?
- 18. 为什么vcard:电子邮件类已被弃用?
- 19. 为什么这些“egrep,fgrep和rgrep”的变体已被弃用?
- 20. Object.observe的替代方法是什么,因为它已被弃用
- 21. 为什么JPasswordField中的getText()已被弃用?
- 22. 为什么JDK 9中的applet已被弃用?
- 23. 为什么JUnit MethodRule和TestWatchman已被弃用?
- 24. 为什么getResources()。getColor(int)已弃用?
- 25. PostMethod setRequestBody(String)已弃用 - 为什么?
- 26. 什么已经取代UITableViewCell setText setText已被弃用?
- 27. RxJavaPlugins.getInstance已被弃用
- 28. reversibleTransformerWithForwardBlock已被弃用
- 29. getActionView已被弃用?
- 30. SMSManager已被弃用