Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)

layoutopt

layoutopt is a command-line tool that helps you optimize the layouts and layout hierarchies of your applications.

This document is a reference to the available command line options. For more information and sample output of the tool, see Optimizing layouts with layoutopt .

Usage

To run layoutopt against a given list of layout resources:

       layoutopt <file_or_directory> ...
      

For example:

       $ layoutopt res/layout-land
      
       $ layoutopt res/layout/main.xml res/layout-land/main.xml