Hello! I have a small curiosity. How does a generic View use the Drawable.Callback interface? Only for the background? This question aroused from the need to make a more special animation (neither tween nor frame) that should be drawn inside a View. I did the following: 1. I made a class that extended Drawable and implemented Runnable. In run() I placed my animation logic. 2. I overridden scheduleDrawable() and invalidateDrawable() methods in a View class so that schedule would postDelayed the Runnable defined above and invalidate would invalidate the view where the animation should modify the window. I also set my View class to be Callback for the Drawable. 3. In the draw() method of Drawable I used scheduleSelf with a certain delay to animate the Drawable.
It works, but I don't understand why if in my implementation scheduleDrawable() I call super.scheduleDrawable() on the first line the postDelayed function doesn't work anymore (and neither the animation). So to resume my questions: Is it "ok" what I did and what is the default implementation of Drawable.Callback in a View? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

