如何在Android中的MapView上放置一个引脚?

时间:2021-10-23 22:30:50

I can locate the pin for corresponding locations in MapView. I want to animate that pin dropping down onto the map.

我可以在MapView中找到相应位置的引脚。我想动画那个引脚下降到地图上。

How to use animation for that? Any ideas?

如何使用动画?有任何想法吗?

2 个解决方案

#1


0  

first of all, take a look at this tutorial that explains how to create pin overlays: http://www.androidguys.com/2008/09/09/maps-itemizedoverlay-and-you/

首先,看一下本教程,它解释了如何创建引脚叠加:http://www.androidguys.com/2008/09/09/maps-itemizedoverlay-and-you/

then note the onDraw method of the inherited overlay. that's where you can animate the bonds in which the pin is drawn.

然后记下继承覆盖的onDraw方法。这就是你可以为绘制引脚的键动画的地方。

#2


0  

Check out

查看

http://developer.android.com/guide/topics/graphics/2d-graphics.html

http://developer.android.com/guide/topics/graphics/2d-graphics.html

It will show you how to use tween animations and transormations.

它将向您展示如何使用补间动画和transormations。

#1


0  

first of all, take a look at this tutorial that explains how to create pin overlays: http://www.androidguys.com/2008/09/09/maps-itemizedoverlay-and-you/

首先,看一下本教程,它解释了如何创建引脚叠加:http://www.androidguys.com/2008/09/09/maps-itemizedoverlay-and-you/

then note the onDraw method of the inherited overlay. that's where you can animate the bonds in which the pin is drawn.

然后记下继承覆盖的onDraw方法。这就是你可以为绘制引脚的键动画的地方。

#2


0  

Check out

查看

http://developer.android.com/guide/topics/graphics/2d-graphics.html

http://developer.android.com/guide/topics/graphics/2d-graphics.html

It will show you how to use tween animations and transormations.

它将向您展示如何使用补间动画和transormations。