Can I use AnimationDrawable in an overlay on a MapView?

后端 未结 1 563
故里飘歌
故里飘歌 2020-12-31 22:37

I have created an AnimationDrawable in XML, and it works fine. But on moving the drawable into a MapView as an overlay marker (replacing a static drawable that works fine),

相关标签:
1条回答
  • 2020-12-31 23:09

    This is untested with animations, but may be of some use.

    I had issues with adding widgets to the MapView, but found the addView method. Try adding the AnimationDrawable through this method, it may change how it is treated by the MapView and hence animate correctly:

    Have a look here for a tiny example: http://www.gauntface.co.uk/pages/blog/2010/01/04/mapview-with-widgets-android/

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