Having trouble animating some view objects. My main activity creates a DrawView class, which extends View. The DrawView class creates three ColorBalls, each of which which extend View. The onDraw function in DrawView calls drawBitmap on each of the ColorBalls. This seems to be required, if I don't do this, they don't show up. (I re-purposed some code I found).
The ColorBalls keep track of their own x,y position, so that DrawView knows where to draw them. DrawView can of course, reposition them, by simply resetting their x, y pos. Then, of course, they jump to the next place. So far, so good. But now I want to animate the balls using TranslateAnimation. But when I try, nothing happens. I think that the onDraw in DrawView is fighting with the Translate Animation, keeping it from doing anything. I think, anyway. But if I don't call the draw bitmap in onDraw, nothing gets drawn ever. So how can I make the ColorBalls draw every frame, but also animate? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---