Sunday 30 October 2011

Optimizing layouts with layoutopt

,
layoutopt tool lets you analyze the XML files that define your application's UI to find inefficiencies in the view hierarchy.
The
To run the tool, open a terminal and launch layoutopt <xmlfiles> from your SDK tools/ directory. The <xmlfiles> argument is a space- delimited list of resources you want to analyze, either uncompiled resource xml files or directories of such files.
The tool loads the specified XML files and analyzes their definitions and hierarchies according to a set of predefined rules. For every issue it detects, it displays the following information:
·         The filename in which the issue was detected.
·         The line number for the issue.
·         A description of the issue, and for some types of issues it also suggests a resolution.


Here I copied the help_screen.xml to <sdk>/tools folder and run the layoutopt.bat from the terminal as follows.

Cheers,
Have a nice day. View Complete List of Tips

0 comments to “Optimizing layouts with layoutopt”

Post a Comment

 

Tips for Android Developers Copyright © 2011 -- Powered by Blogger