Is it possible to animate popped out without going through View?

(I mean the old Android animation system here, not the property attributes that were introduced using Honeycomb.)

I am trying to wrap my head around how to animate markers on a MapView . Since Overlay s is used in map views, and since overlays are neither views nor expose their markers as View s, but as Drawable s, I look for ways to animate the drawn one without putting it in the view container.

Is this even possible? Looking at the sources of Android, it seems that Animation and its various implementations simply contain code to calculate the mathematical transformations applied by the animation. Similarly, for example, RotateDrawable contains only code for calculating rotation, as well as code that converts the converted drawing to canvas.

However, none of them contain code for playing animations; I could only see the animation game using View.startAnimation(animation) .

Is there a way to play the animation or use an animated drawing without a View ?

0
source share
1 answer

I'm trying to wrap my head around how markers are animated on MapView.

Write your own Overlay , which works like ItemizedOverlay , but performs your own animations using ImageView and the classic animation structure, or your own drawing code.

Is there a way to play the animation or use an animated drawing without a view?

I have not tried AnimationDrawable with ItemizedOverlay , so if frame animation is all you need, it is at least worth it. Otherwise, again, I will return to your own Overlay , I'm afraid.

+2
source

All Articles