腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(5506)
视频
沙龙
1
回答
MapFragment
在框架内,当父活动开始时,onPause
MapFragment
变为null
android
我有一个活动ACTIVITY=>Fragment=>
MapFragment
private
MapFragment
getMapFragment() { }
浏览 0
提问于2015-02-26
得票数 0
1
回答
我有一个地图片段活动,我想将其转换为片段
android-studio
com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.
MapFragment
inflater.inflate(R.layout.fragment_maps, null);
MapFragment
mapFragment
= (<em
浏览 4
提问于2016-08-18
得票数 1
回答已采纳
1
回答
java.lang.IllegalStateException:无法更改片段的容器ID
android
、
android-layout
、
android-fragments
== null) { } if (cameraPreviewFragment == null(); ft.add(R.id.big_fragment,
mapFragment
,
浏览 2
提问于2017-04-25
得票数 0
3
回答
Android地图中的Kotlin
android
、
dictionary
、
kotlin
var
mapFragment
: SupportMapFragment?=null
mapFragment
.getMapAsyncnon-null type at example.com.kotlinexamplebydimple.
Mapfragment
.onCreateV
浏览 1
提问于2017-07-28
得票数 2
回答已采纳
1
回答
GoogleMap getMapAsync不会在片段中工作
java
、
android
、
google-maps
、
android-fragments
目前,我可以在我的项目中显示地图,但是添加标记不起作用,
mapFragment
.getMapAsync(this)给出了以下错误消息。无法解析方法'getMapAsync(testCodes.project2.
MapFragment
)。public class
MapFragment
extends Fragment implements OnMapReadyCallback { private GoogleMap mMap;
MapFragment
mapFragment
= (
浏览 1
提问于2017-05-21
得票数 2
5
回答
错误:不兼容类型:无法将片段转换为
MapFragment
android
、
google-maps
、
android-fragments
在其中一个选项卡中,我想调用一个google地图,但我面临以下错误: super.onViewCreated(view, savedInstanceState);
MapFragment
mapFragment
= (
MapFragment
) getFragmentManage
浏览 7
提问于2016-03-09
得票数 8
1
回答
谷歌地图折线项目显示java.lang.RuntimeException
android
、
google-maps
android.os.Bundle;import com.google.android.gms.maps.
MapFragment
savedInstanceState); FragmentManager myFragmentManager = getFragmentManager();
MapFragment
myMapFragment =
MapFragment
)myFragme
浏览 3
提问于2013-03-14
得票数 1
回答已采纳
1
回答
com.google.android.gms.maps.
MapFragment
.getMapAsync :尝试调用虚拟方法的void com.google.android.gms.maps.
MapFragment
.getMapAsync
java
、
android
、
google-maps
、
nullpointerexception
、
mapfragment
当试图调用下面的内容时,我会得到以下错误: 空洞 super.onCreate(savedInstanceState);
mapFragment
= (
MapFragment
) getFragm
浏览 2
提问于2017-07-02
得票数 1
回答已采纳
1
回答
谷歌地图选项Android
android
、
google-maps
" /> android:id="@+id/map" android:name="com.google.android.gms.maps.
MapFragment
浏览 0
提问于2015-03-18
得票数 1
回答已采纳
1
回答
App.Fragment和V4.support.fragment中的地图
android
、
google-maps
、
android-fragments
、
android-support-library
Support.fragment android:id="@+id/
mapFragment
" (SupportMapFragment) getChildFragmentManager().findFragmentById(R.id.
mapFragment
浏览 0
提问于2018-05-05
得票数 3
回答已采纳
2
回答
为GoogleMapOptions子类设置
MapFragment
android
、
google-maps
、
android-fragments
有一个方法问题是我有自己的CustomMapFragment,它是
MapFragment
的子类,我不知道如何为子类设置GoogleMapOptions
浏览 2
提问于2014-06-15
得票数 3
回答已采纳
1
回答
无法使用主活动和导航抽屉启动活动ComponentInfo?
java
、
android
、
android-fragments
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.
MapFragment
.getMapAsyncsavedInstanceState);
MapFragment
mapFragment
= (
浏览 3
提问于2015-05-20
得票数 0
回答已采纳
2
回答
如何从android中的活动中调用片段方法
android
、
android-studio
、
android-fragments
、
android-activity
、
methods
片段法: if (MapList == 0) { fragment.RefreshList(); else {
MapFragment
fragment = (
MapFragment
) get
浏览 0
提问于2018-10-19
得票数 0
1
回答
华为地图套件集成。错误:不可转换的类型;不能将'android.support.v4.app.Fragment‘转换为'com.huawei.hms.maps.SupportMapFragment’
huawei-mobile-services
、
huawei-developers
错误:不可转换的类型;不能将'android.support.v4.app.Fragment‘转换为'com.huawei.hms.maps.SupportMapFragment’ 在他们的项目中使用android appcompat依赖。如下所示,实现'com.android.support:appcompat-v7:28.0.0‘ ?
浏览 32
提问于2021-04-28
得票数 0
1
回答
在xamarin android中以编程方式设置映射片段的高度
xamarin.android
android:layout_height="match_parent" class="com.google.android.gms.maps.
MapFragment
浏览 2
提问于2017-03-29
得票数 0
回答已采纳
3
回答
google
MapFragment
.Map为空
android
、
google-maps
、
xamarin
、
xamarin.android
、
mapfragment
在创建
MapFragment
的Xamarin中,代码显示映射,但
mapFragment
.Map始终为null,我无法设置映射类型var
mapFragment
=
MapFragment
.NewInstanceFragmentTransaction tx = FragmentManager.BeginTransaction(); map =
mapFragment
浏览 2
提问于2014-11-04
得票数 3
回答已采纳
2
回答
mapview强制转换异常错误?
android
、
android-mapview
100dip" android:name="com.google.android.gms.maps.
MapFragment
100dip" android:name="com.google.android.gms.maps.
MapFragment
浏览 2
提问于2013-06-03
得票数 2
回答已采纳
1
回答
从片段中获取Map视图实例
android
、
google-maps
、
android-fragments
、
google-maps-android-api-2
、
supportmapfragment
我有一个由两个片段组成的MainFragment,一个
MapFragment
和一个ListFragment,这是它的布局:<?" > android:id="@+id/map_fragment" android:textCol
浏览 0
提问于2014-01-15
得票数 0
回答已采纳
1
回答
如何使google从android.app.Fragment扩展而不是片段活动
java
、
android
、
google-maps
、
android-fragments
、
navigation-drawer
SupportMapFragment
mapFragment
= (SupportMapFragment) getSupportFragmentManager()
mapFragment
.getMapAsync(this);这里是fragment_map.xml android:layout_height="m
浏览 4
提问于2016-04-10
得票数 0
1
回答
安卓系统中的GoogleMap不显示标记
android
、
google-maps-android-api-2
这是我的密码: private
浏览 2
提问于2016-03-24
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券