1 page.title=layoutopt 2 parent.title=Tools 3 parent.link=index.html 4 @jd:body 5 6 7 <p class="note"><strong>Note: </strong>The Android <code>layoutopt</code> tool has been replaced by the {@code lint} tool beginning in ADT and SDK Tools revision 16. The {@code lint} tool reports UI layout performance issues in a similar way as <code>layoutopt</code>, and detects additional problems.</p> 8 <p>For more information about using {@code lint}, see <a href="{@docRoot}tools/debugging/improving-w-lint.html">Improving Your Code with lint</a> and the <a href="{@docRoot}tools/help/lint.html">lint reference documentation</a>.</p> 9 10 <p><code>layoutopt</code> is a command-line tool that helps you optimize the 11 layouts and layout hierarchies of your applications.<p> 12 13 <p>This document is a reference to the available command line options. For more information and sample 14 output of the tool, see <a 15 href="{@docRoot}tools/debugging/debugging-ui.html#layoutopt">Optimizing layouts with 16 layoutopt</a>.</p> 17 18 <h3>Usage</h3> 19 20 <p>To run <code>layoutopt</code> against a given list of layout resources:</p> 21 22 <pre>layoutopt <file_or_directory> ...</pre> 23 24 <p>For example:</p> 25 26 <pre>$ layoutopt res/layout-land</pre> 27 <pre>$ layoutopt res/layout/main.xml res/layout-land/main.xml</pre> 28 29