How to drawan overlay with buttons, text and image on a google map

一曲冷凌霜 提交于 2019-12-02 15:41:14

问题


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...???


回答1:


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.



来源:https://stackoverflow.com/questions/6777022/how-to-drawan-overlay-with-buttons-text-and-image-on-a-google-map

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!