I have a ViewGroup where I re-layout the children very often (using
child.layout since I need to change the size). Now, of course I'd like
to use drawing-cache to speed things up.

I noted, in the new SDK, that View.getDrawingCache has an autoscale
argument, which will be invoked with autoscale=true from
ViewGroup.drawChild(..). So I tell my ViewGroup to always render using
childrens cache. I've confirmed that the getChildrenCache(boolean) is
invoked on each frame. I've also confirmed that it really returns a
Bitmap and not null. But the strange thing is that the dispatchDraw-
method is Also invoked on every child, every frame? How come?
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to