在谷歌Android覆盖mylocation按钮Maps API第2 [英] Override mylocation button in android Google maps api v2

查看:393
本文介绍了在谷歌Android覆盖mylocation按钮Maps API第2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想哟覆盖谷歌地图的默认我的位置按钮显示如果用户是pressing的mylocation按钮不会启用GPS时,GPS未启用消息。我怎样才能做到这一点?

I am trying yo override Google map's default my location button to display "GPS is not enabled" message if the user is pressing the mylocation button when gps is not enabled. How can i do this?

推荐答案

使用注册的mylocation点击 setOnMyLocationButtonClickListener onMyLocationButtonClick()显示您的消息。

register for the mylocation click using setOnMyLocationButtonClickListener and in onMyLocationButtonClick () show your message.

这篇关于在谷歌Android覆盖mylocation按钮Maps API第2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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