I've used Traceview extensively on this code - it used to take 20 seconds and now it's down to 3, all of which is in the View constructors and the code where I set various drawing parameters. It's just a lot of Views and there is no smoking gun where a lot of time is being spent. I thought about creating a pool of pre-built Views but there's no guarantee that it will be any faster than the current approach and such a pool is very complex to implement in the Android framework.
On Nov 6, 12:01 pm, Mark Murphy <[email protected]> wrote: > On Sat, Nov 6, 2010 at 2:51 PM, Bret Foreman <[email protected]> wrote: > > The time > > taken is just in building the view hierarchy itself - creating and > > initializing the Views takes a few seconds. > > Use Traceview and find where your performance issue lies. "Building > the view hierarchy itself" is a very broad statement. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 > Available! -- 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

