2009-10-23 19:17:12 -07:00
|
|
|
page.title=layoutopt
|
2011-02-15 18:26:07 -08:00
|
|
|
parent.title=Tools
|
|
|
|
parent.link=index.html
|
2009-10-23 19:17:12 -07:00
|
|
|
@jd:body
|
|
|
|
|
|
|
|
<p><code>layoutopt</code> is a command-line tool that helps you optimize the
|
2010-12-16 17:50:43 -08:00
|
|
|
layouts and layout hierarchies of your applications.<p>
|
|
|
|
|
|
|
|
<p>This document is a reference to the available command line options. For more information and sample
|
2011-02-08 15:04:42 -08:00
|
|
|
output of the tool, see <a
|
2012-06-21 17:14:39 -07:00
|
|
|
href="{@docRoot}tools/debugging/debugging-ui.html#layoutopt">Optimizing layouts with
|
2011-02-08 15:04:42 -08:00
|
|
|
layoutopt</a>.</p>
|
2009-10-23 19:17:12 -07:00
|
|
|
|
|
|
|
<h3>Usage</h3>
|
|
|
|
|
|
|
|
<p>To run <code>layoutopt</code> against a given list of layout resources:</p>
|
|
|
|
|
2010-12-16 17:50:43 -08:00
|
|
|
<pre>layoutopt <file_or_directory> ...</pre>
|
2009-10-23 19:17:12 -07:00
|
|
|
|
|
|
|
<p>For example:</p>
|
|
|
|
|
|
|
|
<pre>$ layoutopt res/layout-land</pre>
|
|
|
|
<pre>$ layoutopt res/layout/main.xml res/layout-land/main.xml</pre>
|
2010-12-16 17:50:43 -08:00
|
|
|
|