gpt4 book ai didi

android - SupportMapFragment vs MapFragment 性能方面

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:45:57 26 4
gpt4 key购买 nike

SupportMapFragment之间有什么区别吗?和 MapFragment ?在引用资料中说,当您以 Android API 级别 12 及更高级别为目标时,您应该只使用 MapFragment,但是还有其他区别吗?其中一个更快吗?

最佳答案

Are there any differences between SupportMapFragment and MapFragment?

一个以“支持”一词开头。 :-)

除此之外,MapFragment 继承自 android.app.FragmentSupportMapFragment 继承自 android.support.v4.app . fragment .

In the reference it says that you should only use MapFragment when you target Android API level 12 and higher

更准确地说,您将 MapFragmentActivity(使用 native API 级别 11+ fragment )一起使用,并将 SupportMapFragment 一起使用>FragmentActivityActionBarActivity(使用 fragment 反向端口)。

are there any other differences?

由于 Play Services SDK 是封闭源代码,唯一可靠地了解这一点的方法是在 Google 找到一份工作,以便您可以检查源代码。

Is one of them faster?

它们应该是彼此的克隆体。我还没有听说过任何关于性能差异的报告。

关于android - SupportMapFragment vs MapFragment 性能方面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21647248/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com