Map Marker icon animation (Google Maps API V2 for Android)

后端 未结 2 1604
感动是毒
感动是毒 2020-12-18 16:25

On a custom event, I need my Marker to update its drawable 6 times (basically, I want the Marker to grow and shrink 3 times with a delay of 0.5 s b

相关标签:
2条回答
  • 2020-12-18 17:12

    I'm afraid there is no way to do it today without actually removing the marker and adding it again with another drawable. I have just done so myself in an attempt to create a progress bar. It works, but it is an awkward way of doing it.

    Click here for a good explanation in another thread.

    0 讨论(0)
  • 2020-12-18 17:12

    Marker has a new function added as of rev.7 of API v2. Marker.setIcon. Have fun animating.

    0 讨论(0)
提交回复
热议问题