如何drawan覆盖上了谷歌地图按钮,文本和图像 [英] How to drawan overlay with buttons, text and image on a google map

查看:174
本文介绍了如何drawan覆盖上了谷歌地图按钮,文本和图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的机器人。我的工作,它使用的地图的项目。我想在其中包含一个矩形,一些位置信息和一个按钮点击时,这使得覆盖看不见特定的GeoPoint绘制一个覆盖项目。我可以叠加的绘制方法,使用的drawRect()和的drawText()绘制矩形和文本。问题是,如何绘制一个按钮叠加的一部分,这是点击,或者类似的东西。任何人都可以提出一些... ???

I am new to android. I am working on a project which uses map. I want to draw an overlay item on a specific geopoint which contains a rectangle, some location info and a button which makes the overlay invisible when clicked. I can draw rectangle and text using drawRect() and drawText() in the draw method of overlay. The problem is that how to draw a button as a part of overlay which is clickable or something like that. Can anybody suggest something...???

推荐答案

请阅读以下链接并下载code中的链接

Read the following links and download the code in the links

https://github.com/jgilfelt/android-mapviewballoons

https://github.com/jgilfelt/android-mapviewballoons#readme

这真的工作很高兴在地图上显示按钮。

it really working nice to display button on the map.

这篇关于如何drawan覆盖上了谷歌地图按钮,文本和图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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