在片段使用谷歌地图Android版兼容Android的支持库 [英] Using Google Maps in fragments with compatibility android support libs for android

查看:177
本文介绍了在片段使用谷歌地图Android版兼容Android的支持库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用谷歌地图一样多的片段中的一个。我发现然后没有其他的方法以下面的方式提到的...

http://stackoverflow.com/a/8126287

和我成功
但现在我有2个问题


  1. 我要调用的MyMapActicity的公共方法从另一个片段(MyMapActivity创建为上面给出的链接中提到)。即,例如如果我有碎裂其他一些片段MapFragment作为有关MyMapActivity片段(以上链接的帮助下创建),那么我想打电话从MyMapActivity从碎裂的方法。我如何做到这一点。


  2. 我也想恢复与片段它被称为...



解决方案

我得到了我的答案在

http://stackoverflow.com/a/8126287

链接还提供了一个非常好的榜样
由于我只有一个活动的这个工作对我来说。

感谢您
拉吉

I want to use google maps as one of the fragments of many. I found no other way then the one mentioned in the following way...

http://stackoverflow.com/a/8126287

and I was successful But now I have 2 problems

  1. I want to call a public method of the MyMapActicity(MyMapActivity is created as mentioned in the link given above) from another fragment. i.e. e.g. if I have fragmentA as some other fragment and MapFragment as a fragment related to MyMapActivity(created with help of above link) then I want to call a method from MyMapActivity from FragmentA. How do I do this.

  2. I also want to resume the fragment with it is called...

解决方案

I got my answer at

http://stackoverflow.com/a/8126287

The link also provides a very nice example to follow As I have only one activity this worked for me.

thank you Raj

这篇关于在片段使用谷歌地图Android版兼容Android的支持库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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