[英]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.