Do you mean that onDraw(Canvas) will ignore the drawing call in it when the affected area is not in the dirty area? I can hardly believe it it so wise. How about the drawing call which affected area overlaps with the dirty area?
On 3月7日, 下午12时12分, Romain Guy <[email protected]> wrote: > This just sets the clip bounds. You will receive an onDraw(Canvas) > call as usual and everything you draw outside of the clip bounds will > be ignored. You can do ahead-of-time skips if you know you are > performing intensive computations in onDraw() (which you should not be > doing anyway) but it's most often not worth it. > > > > On Fri, Mar 6, 2009 at 6:37 PM, FBear <[email protected]> wrote: > > > android.view.View.invalidate(int l, int t, int r, int b) can mark the > > the area defined by the rect (l,t,r,b) as needing to be drawn. > > But how does View update only the dirty area specified by the rect? > > Is it wise enough to redraw only the dirty area even if the onDraw is > > customized to update the whole view? > > > I read some sources and searched in google developer group. No answer > > to this question was found. > > > Would anybody please kindly explain that to me? > > > Thanks in advance. > > > FBear > > -- > Romain Guy > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time > to provide private support. 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 -~----------~----~----~----~------~----~------~--~---

