On Tue, Jun 26, 2012 at 6:51 PM, Tamás Kovács
<[email protected]> wrote:
> but it seems that my custom View is so complex that it
> takes 1 second to instantiate (even if its drawables are preloaded).

Step #1: Run Traceview on your app.

Step #2: Find where the real problem is.

Step #3: Fix the real problem.

For example, if the real problem is too many views, find ways to
consolidate them (e.g., compound drawables in TextViews,
RelativeLayout or GridLayout instead of nested LinearLayouts).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in DC: http://marakana.com/training/android/

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