图形窗口和片段 [英] Mapview and Fragment

查看:126
本文介绍了图形窗口和片段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到了一些话题几个月前,有关的事实,使用(谷歌)MapView的一个片段里面是有点棘手/是不可能的。我想知道,如果ATM(6月)有一种解决方法吗?我的应用程序(的Andr​​oid 3.0)基本上是正与碎片系统,我需要在这些片段中的一个显示的地图。

I've seen some topics some months ago, about the fact that using (Google)MapView inside a Fragment was a bit tricky/impossible. I would like to know if atm (June) there is a workaround ? My application (Android 3.0) is essentially working with the Fragment system and I need to display a map in one of these fragments.

推荐答案

目前我只知道一个解决方案。我碰到这种迷迷糊糊的时候我遇到了同样的问题。 https://github.com/petedoyle/android-support-v4-googlemaps

Currently I only know of one solution. I stumbled across this when I ran into the same problem. https://github.com/petedoyle/android-support-v4-googlemaps.

修改

下面是一个较新的基于叉关闭R9 https://github.com/rfc1459/ Android的支持-V4-Google地图

Here is a newer fork based off r9 https://github.com/rfc1459/android-support-v4-googlemaps

您可以通过Eclipse构建,或从这里下载一个编译版本 https://开头github.com/rickbarrette/android-support-v4-googlemaps/downloads

You can build it via eclipse or download a compiled version here https://github.com/rickbarrette/android-support-v4-googlemaps/downloads

这篇关于图形窗口和片段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆