Ricardo
Ricardo

Reputation: 2923

How can I animate a Marker when I put it on the map?

I would like to add a small animation to my markers when I put them on the map. Just in the moment when I call:

Marker marker = mMap.addMarker(...);

Something like a small bounce or similar during half second or so. I don't find the way to get the Marker's view. If I find the way to get the view, I guess it is easy to apply an animation using View.setAnimation() and res/animator/marker_animation.xml

Any help or suggestions?

Upvotes: 0

Views: 39

Answers (1)

N Dorigatti
N Dorigatti

Reputation: 3540

There is this good video that shows markers animations: https://www.youtube.com/watch?v=WKfZsCKSXVQ

You can't animate the "Marker View" itself because it not accessible

Upvotes: 1

Related Questions