January 2012
Intermediate to advanced
282 pages
7h 4m
English
To assist you in creating the best layouts, the Android SDK provides two easy-to-use tools: hierarchyviewer and layoutopt. You can find these tools, among others, in the SDK tools directory.
The Android SDK comes with a very useful tool to view and analyze your application's layout: hierarchyviewer. As a matter of fact, Figure 8–1 and Figure 8–2 were generated using that tool. In addition to showing you the detailed layout of your application, this tool also measures how much time it takes to measure, lay out, and draw each widget, and identifies which widgets took longer to measure, lay out, and draw.
You can use hierarchyviewer as a standalone tool or directly in Eclipse with the “Hierarchy View” perspective.