有谁知道如何让地图在活动组内工作?
我以前曾多次使用过地图,但这是我第一次尝试在 ActivityGroup 中使用它。我花了几个小时绞尽脑汁试图弄清楚为什么地图不会显示(只显示网格),结果证明这只是因为 Activity 位于 ActivityGroup 中。
我用谷歌搜索了这个问题,但发现的都是人们询问如何做,但没有得到任何答案。
有谁知道是否有办法让地图在 ActivityGroup 内工作?
I have used maps many times before, but this is the first time I have ever tried to use it within an ActivityGroup. I have spent hours pulling my hair out trying to figure out why the maps won't show (just showing the grid) and it turns out that it is simply because the Activity is in an ActivityGroup.
I googled the problem but all found was people asking how and not getting any answers.
Does anyone know if there is a way to get maps working inside an ActivityGroup?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
ActivityGroup 管理其他活动。带有地图的 Activity 必须扩展 MapActivity(ActivityGroup 显然不会)。
因此,您可以嵌入一个显示地图的活动,但您的活动组无法显示地图本身。
ActivityGroup manages other activities. An activity with a map has to extend MapActivity (which ActivityGroup obviously does not).
So you can embed an activity that displays a map, but your activity group can't display the map itself.