Thanks! I thought that invalidate just forces a view to be drawn even if it is off-screen or under some other view. I don't know how I got that idea though. I must have been reading something that I thought was the invalidate docs, but not. Oh well, thanks for the help.
On Oct 12, 2:03 am, "Romain Guy" <[EMAIL PROTECTED]> wrote: > Hi, > > To redraw a View, simply call invalidate(), then your onDraw(Canvas) > method will be invoked. SurfaceView has nothing to do with it, forget > about SurfaceView for now :) > > On Sat, Oct 11, 2008 at 4:50 PM, august <[EMAIL PROTECTED]> wrote: > > > Hello, > > I want to create a custom component extending View, but I am not sure > > how to tell the Android os when I want to redraw my component. For > > instance, how does Gallery redraw itself when the user pushes the > > right button and the selected view changes? Do all Android created > > Views contain a SurfaceView that is uses to draw into? How do I do > > this? > > > Thank-you > > -- > Romain Guywww.curious-creature.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

