I don't think you can. Devil's advocate: What makes you think that invalidating 20 rects individually is more performant than the union?
On May 20, 8:31 am, a450 <[email protected]> wrote: > I need to be able to selectively invalidate multiple (about 20) > rectangles on the screen for performance reasons, so tried the > following in my onDraw method: > > Vector<Rect> myRects = new Vector<Rect>(); > > // ... add some Rects to myRects > > for (Rect r : myRects) { > invalidate(r); > > } > > However this seems to invalidates a union of all the Rect's, forming > one large rectangle which covers all of small ones I'm trying to > invalidate. > > How can one invalidate multiple areas on the screen, and only those > areas? > > -- > 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 > athttp://groups.google.com/group/android-developers?hl=en -- 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

