O'Reilly logo

Android UI Design by Jessica Thornsby

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Simplifying your Hierarchy View

Another common cause of performance problems is your app's Hierarchy View.

When the Android system renders each view, it goes through three stages: measure, layout, and draw. The time it takes the system to complete each stage is affected by the number of views in your hierarchy, and how these views are arranged.

Arranging your views in deeper, more complex, hierarchies will have a noticeable impact on your app's rendering speed. You should be on the lookout for any opportunities to flatten your view hierarchy and remove nested layouts.

As well as highlighting areas of overdraw, Hierarchy View helps you visualize your app's view hierarchy and provides some really useful performance information about how long each view ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required