谷歌地图Android的API:SupportMapFragment VS MapFragment [英] Google Maps Android API: SupportMapFragment vs MapFragment
问题描述
我通过谷歌地图API文档和MapFragment下阅读,它建议只有在针对API 12级以上使用类。然后,我认为SupportMapFragment针对API 11及以下,虽然谷歌没有明确提到它的文档。 然后,如果我想要的目标范围广泛的API拉特是什么?不SupportMapFragment还针对上述11 API?
然后,我认为SupportMapFragment针对API 11及以下,虽然谷歌在文件中并没有明确提到它。
SupportMapFragment
是与片段支持Android包的反向移植使用。它可用于在运行11和更高的运行的API 10及下Android设备,以及机器人装置。 MapFragment
需要原生API级别11片段的实施,因此只能在API级别11和更高的设备上使用。
请注意,有运行API级别11没有设备,我知道的 - 一切都已经升级至少API级别12
I read through the google maps API documentation and under MapFragment, it advises to use the class only when targeting API 12 and above. Then I assume that SupportMapFragment targets API 11 and below, though google didn't explicit mention it in the documentation. Then what if I want to target a wide range of API lvl? Does SupportMapFragment also targets API above 11?
Then I assume that SupportMapFragment targets API 11 and below, though google didn't explicit mention it in the documentation.
SupportMapFragment
is for use with the Android Support package's backport of fragments. It can be used on Android devices running API 10 and lower, as well as Android devices running 11 and higher. MapFragment
requires the native API Level 11 fragment implementation, and therefore can only be used on API Level 11 and higher devices.
Note that there are no devices running API Level 11 that I know of -- everything has been upgraded at least to API Level 12.
这篇关于谷歌地图Android的API:SupportMapFragment VS MapFragment的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!