简体   繁体   English

android.support.v4.app.FragmentActivity扩展了什么?

[英]What does android.support.v4.app.FragmentActivity extend?

The webpage with the following address states that the class FragmentActivity extends the class Activity: 具有以下地址的网页指出FragmentActivity类扩展了Activity类:

https://developer.android.com/reference/android/support/v4/app/FragmentActivity.html https://developer.android.com/reference/android/support/v4/app/FragmentActivity.html

However, when I bring up the documentation for the android.support.v4.app.FragmentActivity class within Android Studio, it states that FragmentActivity extends android.support.v4.app.BaseFragementActivityHoneycomb. 但是,当我调出Android Studio中android.support.v4.app.FragmentActivity类的文档时,它指出FragmentActivity扩展了android.support.v4.app.BaseFragementActivityHoneycomb。

What is the reason for the discrepancy and which is correct? 出现差异的原因是什么,哪个是正确的?

This goes up to BaseFragmentActivityDonut . 这取决于BaseFragmentActivityDonut These base fragments are just an implementation detail of FragmentActivity and should not concern you at all. 这些基本片段只是FragmentActivity的实现细节,完全不关心您。 In the library I use, FragmentActivity directly extends BaseFragmentActivityJB . 在我使用的库中, FragmentActivity直接扩展BaseFragmentActivityJB In the future there might be something like BaseFragmentActivityM or some compatibility layer for even newer platforms. 将来可能会出现诸如BaseFragmentActivityM类的BaseFragmentActivityM或者甚至对于较新的平台也可能会有一些兼容性层。

For your programming just assume it extends Activity only, like the documentation states. 对于您的编程,只需假设它像文档说明中那样仅扩展了Activity

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 android.support.v4.app.FragmentActivity无法解析 - android.support.v4.app.FragmentActivity can not be resolved android.support.v4.app.FragmentActivity缺少操作栏 - android.support.v4.app.FragmentActivity missing action bar 无法在ViewModelProviders中解析android.support.v4.app.FragmentActivity的方法 - Cannot resolve method of android.support.v4.app.FragmentActivity in ViewModelProviders 无法将ContraceptiveFragment中的ContraceptiveFragment()应用于(android.support.v4.app.FragmentActivity) - ContraceptiveFragment( ) in ContraceptiveFragment cannot be applied to (android.support.v4.app.FragmentActivity) “TAG”在“android.support.v4.app.FragmentActivity”中有私有访问权限 - 'TAG' has private access in 'android.support.v4.app.FragmentActivity' “无法找到类'android.support.v4.app.FragmentActivity'”错误 - “Could not find class 'android.support.v4.app.FragmentActivity'” Error 无法解析构造函数'GridLayoutManager(android.support.v4.app.FragmentActivity) - Cannot resolve constructor 'GridLayoutManager(android.support.v4.app.FragmentActivity) 无法将clcik上的android.app.Application强制转换为android.support.v4.app.FragmentActivity - android.app.Application cannot be cast to android.support.v4.app.FragmentActivity on clcik 谷歌地图v2,缺少'android.support.v4.app.FragmentActivity' - Google maps v2, missing 'android.support.v4.app.FragmentActivity' 被android.support.v4.app.FragmentActivity和android.app.FragmentTransaction混淆 - Confused by android.support.v4.app.FragmentActivity and android.app.FragmentTransaction
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM