blob: e8f623d773969d83cfeed05299017b047a0c6dc5 [file] [log] [blame]
Dirk Doughertybf15ce62009-10-23 19:17:12 -07001page.title=layoutopt
2@jd:body
3
4<p><code>layoutopt</code> is a command-line tool that helps you optimize the
Robert Ly6ffacae2010-12-16 17:50:43 -08005layouts and layout hierarchies of your applications.<p>
Dirk Doughertybf15ce62009-10-23 19:17:12 -07006
Robert Ly6ffacae2010-12-16 17:50:43 -08007<p>This document is a reference to the available command line options. For more information and sample
Scott Main300cd262011-02-08 15:04:42 -08008output of the tool, see <a
9href="{@docRoot}guide/developing/debugging/debugging-ui.html#layoutopt">Optimizing layouts with
10layoutopt</a>.</p>
Dirk Doughertybf15ce62009-10-23 19:17:12 -070011
12<h3>Usage</h3>
13
14<p>To run <code>layoutopt</code> against a given list of layout resources:</p>
15
Robert Ly6ffacae2010-12-16 17:50:43 -080016<pre>layoutopt &lt;file_or_directory&gt; ...</pre>
Dirk Doughertybf15ce62009-10-23 19:17:12 -070017
18<p>For example:</p>
19
20<pre>$ layoutopt res/layout-land</pre>
21<pre>$ layoutopt res/layout/main.xml res/layout-land/main.xml</pre>
Robert Ly6ffacae2010-12-16 17:50:43 -080022