腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(1811)
视频
沙龙
1
回答
为什么
尚未
附加
Fragment
SupportMapFragment
google-maps
、
kotlin
、
android-fragments
、
supportmapfragment
)
尚未
附加
。
SupportMapFragment
.getMapAsync(此)。: View {
supportMapFragment
.childFragmentManager.findFragmentById(R.id
浏览 15
提问于2021-10-11
得票数 0
1
回答
在仿真器上映射应用程序退出
java
、
android
、
xml
我不明白这段代码有什么问题,
为什么
要抛出这个异常,我已经安装了最新的google服务rev 19,<?xml version="1.0" encoding="utf-8"?R.id.showBtn); showBtn.setClickable(false); android:la
浏览 2
提问于2014-08-11
得票数 0
回答已采纳
1
回答
扩展
SupportMapFragment
-如何实例化新片段?
java
、
android
、
android-fragments
、
google-maps-api-2
、
supportmapfragment
在MapFragment和
SupportMapFragment
的文档中,他们通过调用newInstance()而不是使用new
SupportMapFragment
()来创建一个新的片段。我的应用程序项目扩展了
SupportMapFragment
,我试图在我的片段类上调用MyMapFragment.newInstance(),结果显示了地图,但没有调用任何被覆盖的方法,比如onCreateView我没有在类中重写newInstance(),事后很明显,newInstance()返回的是
SupportMapFragment
实
浏览 5
提问于2014-02-05
得票数 0
回答已采纳
2
回答
从片段初始化时AndroidXMapFragment返回null
android
、
here-api
SupportMapFragment
在here sdk中被弃用,当我开始导航时,在屏幕旋转时它崩溃了。turn-by-turn-navigation/app/src/main/java/com/here/android/example/guidance 我在activity中实现了我的项目,但我需要像以前一样在
fragment
androidx.appcompat.app.AppCompatActivity; import androidx.core.app.Activi
浏览 30
提问于2020-01-23
得票数 1
回答已采纳
3
回答
安卓MapFragment运行时错误-找不到类'maps.j.k‘
android
、
android-fragments
、
android-maps-v2
、
supportmapfragment
、
mapfragment
我正在使用
SupportMapFragment
,并取得了很大的成功。我一点问题都没有。我的布局文件(
fragment
_map.xml): xmlnsschemas.android
浏览 5
提问于2013-02-12
得票数 5
2
回答
findFragmentById始终返回空值
android
、
android-layout
、
nullpointerexception
、
android-tabs
、
mapfragment
actionbar.newTab().setText("hey");
Fragment
fragment
; this.
fragment
=
fragment
; },
fragment</em
浏览 0
提问于2013-04-02
得票数 3
回答已采纳
4
回答
空对象引用上的
SupportMapFragment
.getMap()
android
、
android-fragments
、
android-googleapiclient
if (mMap == null) { .findFragmentByIdmMap = ((
SupportMapFragment
) MainActivity.fragmentManager
浏览 8
提问于2015-04-26
得票数 7
回答已采纳
2
回答
如果我扩展FragmentActivity应用程序崩溃
android
、
google-maps
、
maps
googleMap= ((
SupportMapFragment
)getSupportFragmentManager().findFragmentById(R.id.map)).getMap(); return true;}<
fragment
xmlns:androidjava.lang.ClassCastException: com.google.android.gms.maps.MapFragment
浏览 3
提问于2013-06-22
得票数 1
11
回答
MapFragment.getMapAsync(此)- NullPointerException
android
、
google-maps
、
android-maps-v2
LayoutInflater inflater, ViewGroup container,
SupportMapFragment
mapFragment = (
SupportMapFragment
) getActivity().getSupportFragmentManager() mapFragment.getMapAsync(this); /&
浏览 181
提问于2015-06-23
得票数 39
回答已采纳
2
回答
MapFragment在android中返回null
java
、
android
、
android-fragments
googleMap = ((
SupportMapFragment
) getActivity().getSupportFragmentManager().findFragmentById(R.id.map我在基本活动中使用了扩展FragmentActivity,所以使用支持片段 googleMap = ((
Support
浏览 3
提问于2014-12-29
得票数 1
2
回答
不能将
SupportMapFragment
添加到FrameLayout
android
、
google-maps
、
android-fragments
MapyFragment.class.getSimpleName()).commit();MapyFragment.class private GoogleMap map; @OverrideViewGroup container, @Nullable Bundle saved
浏览 3
提问于2017-02-01
得票数 0
2
回答
第二次膨胀类片段时出错
android
、
android-fragments
class HomeActivity extends ActionBarActivity static FragmentManager fragmentManager;
fragment
= homeFragment;home-- ***** THIS IS WHAT IS CAUSING THE PROBLEM ***** -->
浏览 1
提问于2014-10-29
得票数 1
1
回答
无法将片段转换为
SupportMapFragment
android
、
google-maps-api-2
为什么
我不能将片段转换为
SupportMapFragment
.here是代码 R.id.map)).getMap();<
fragment
class="com.google.android.gms.maps.
SupportMapFragment
浏览 3
提问于2014-06-17
得票数 0
回答已采纳
1
回答
如何参考在Android片段中创建的地图
android
、
android-studio
、
kotlin
、
google-maps
xmlns:map="http://schemas.android.com/apk/res-auto" map:mapId="{my_map_id}" android:layout_widthfin
浏览 8
提问于2022-05-03
得票数 1
回答已采纳
4
回答
请求超类调用的onCreateView()方法
java
、
android
checkLocationPermission(); // Initializing .findFragmentById
浏览 0
提问于2017-03-13
得票数 1
1
回答
如何消除Map
Fragment
中的衰落问题
android
、
map
、
scrollview
、
fade
我有
附加
屏幕截图。FragmentManager myFragmentManager = getSupportFragmentManager(); _myMap = mySupportMapFragment.getMap5dip" android:layout_t
浏览 1
提问于2013-11-21
得票数 0
2
回答
创建map v2扩展片段时出错
java
、
android
、
android-fragments
、
android-mapview
、
android-maps-v2
我尝试在
fragment
..Here上实现谷歌地图v2的代码是:public class D_Map extends
Fragment
{
浏览 0
提问于2015-07-08
得票数 0
1
回答
如何从片段中实例化Google Map?
android
、
android-fragments
、
google-maps-android-api-2
android.app.Activity;import android.os.Bundle;import com.google.android.gms.maps.
SupportMapFragment
container, Bundle saved
浏览 1
提问于2014-07-17
得票数 0
4
回答
谷歌地图APIv2应用程序无法工作,不断崩溃
java
、
android
、
runtime-error
、
google-maps-android-api-2
com.google.android.gms.maps.CameraUpdateFactory;import com.google.android.gms.maps.
SupportMapFragment
setUpMapIfNeeded() {if (googleMap == null) {&l
浏览 0
提问于2014-07-25
得票数 0
1
回答
谷歌地图安卓: java.lang.ClassCastException: android.widget.FrameLayout不能转换为com.google.android.gms.maps.
SupportMapFragment
android
、
android-fragments
我定义的MapFragment如下所示: <
fragment
xmlns:android="http://schemas.android.com/apk/res/android" class="com.google.android.gms.maps.
SupportMapFragment
" andro
浏览 19
提问于2019-03-21
得票数 1
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Learning OpenGL——OpenGL Model,Pipeline and Practices
TypeScript 4.0正式发布!现在是开始使用它的最佳时机
那些不在乎客户的企业凭什么竞争的?
用户发现推文照片预览有“偏见”,Twitter回应
苹果正在考虑终止iPhone和iPad的Safari内部强制执行标准
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券