1. FragmentActivity
Base class for activities that want to use the support-based Fragment and Loader APIs.
When using this class as opposed to new platform's built-in fragment and loader support, you must use the getSupportFragmentManager() and getSupportLoaderManager() methods respectively to access those features.
Note: If you want to implement an activity that includes an action bar, you should instead use the ActionBarActivity class, which is a subclass of this one, so allows you to use Fragment APIs on API level 7 and higher.
2.
3.
4.
5.
本文介绍了FragmentActivity的基本概念,作为使用Fragment和Loader API的支持基类,它适用于API级别7及以上的应用。文章强调了当使用此类而不是平台内置支持时,开发者应当调用getSupportFragmentManager()和getSupportLoaderManager()来获取特性支持。此外,还提到了如果需要实现包含操作栏的活动,则推荐使用ActionBarActivity。
551

被折叠的 条评论
为什么被折叠?



