标志闪烁在谷歌地图Android版中版中、标志、地图、Android

2023-09-06 05:39:20 作者:不负如来不负卿

我刚开始开发Android应用程序,我有开发谷歌地图的应用程序,并按照本教程之后添加在谷歌地图的标记。

I have just started Android application development, I have develop the application of Google map and added the marker on Google map after following this tutorial.

http://mobiforge.com/developing/story/using-google-地图功能的Andr​​oid

现在我要上闪烁谷歌地图标记,请给方向,这样我可以在眨眼谷歌地图标记。

Now I want to blink the marker on Google map, please give the direction so that I can blink the marker on Google map.

推荐答案

从视图API点,这是不可能的,但有可能是应工作,我不知道是否可行的方法,但在理论上它必须

From API point of view this is not possible but there might be a workaround that should work I am not sure if it works but theoretically it must

创建您画的标记,如红色形象第一,然后greeen等等

Create a Thread that must redraw the marker at some interval 1sec and change the image alternatively in code where you draw the marker like red image first then greeen and so on

//---add the marker---
Bitmap bmp = BitmapFactory.decodeResource(
getResources(), R.drawable.pushpin);            
canvas.drawBitmap(bmp, screenPts.x, screenPts.y-50, null);