If I have two views in a linear layout, and invalidate one of them, it
causes the other view to redraw needlessly. Im my application on view
is animated, and the other takes a long time to draw, this is causing
problems with the animation.

>From experimentation it seems that putting the slow layout inside an
extra LinearLayout prevents the unnecessary redraw, as does separating
the two views by a 1 pixel margin. Looking at the code in the sdk it
seems the dirty rectangle for each view is (top, left, top + width,
bottom + width), which means neighboring clip and dirty rectangles
overlap by one pixel, causing the additional unwanted redraw.

Is this a but in the Android SDK, or is it intended. If intended, why?

Cheers,
Keean.

-- 
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

Reply via email to