Thanks, although to clarify this discussion for anyone else who finds reads this, View.onDraw() doesn't directly take a Rect parameter. It takes a Canvas...which turns out to have a clip rect inside it which is easily retrieved.
Cheers! On Apr 26, 11:02 am, Dianne Hackborn <[email protected]> wrote: > Use the rectangle given to onDraw(). > > On Sun, Apr 26, 2009 at 8:27 AM, Keith Wiley <[email protected]> wrote: > > > Subject pretty much says it all. I can't find a getInvalidRegion() or > > getInvalidRect() function, or anything of similar intention. How do I > > trim my drawing work during onDraw() to only the invalid region so I > > don't bother drawing parts of the view that don't need to be updated? > > > Thanks. > > -- > Dianne Hackborn > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

