Tuesday, June 7, 2011

Re: [android-developers] method setDirty() for View?

Hi Romain,

Using invalidate() is the trivial View method that I wanted to circumvent, because it will adress its parent, which then will scan all of its children, and redraw the ones that are dirty. If you have a lot of children, and your app is an audio program that must not be interrupted, then you have a problem. Also I found out that if there is not enough time to redraw some view, then all visible views will be redrawn.

So I was trying to strip down the ViewGroup such that it became faster, with some succes. The bottleneck now is the method drawChild(Canvas canvas, View child), statement child.mPrivateFlags |= View.DRAWN, that can't be used any more. Could you give away the secret what I must use instead?

wboe

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate