Scott Main | 50e990c | 2012-06-21 17:14:39 -0700 | [diff] [blame] | 1 | page.title=layoutopt |
| 2 | parent.title=Tools |
| 3 | parent.link=index.html |
| 4 | @jd:body |
| 5 | |
| 6 | <p><code>layoutopt</code> is a command-line tool that helps you optimize the |
| 7 | layouts and layout hierarchies of your applications.<p> |
| 8 | |
| 9 | <p>This document is a reference to the available command line options. For more information and sample |
| 10 | output of the tool, see <a |
| 11 | href="{@docRoot}tools/debugging/debugging-ui.html#layoutopt">Optimizing layouts with |
| 12 | layoutopt</a>.</p> |
| 13 | |
| 14 | <h3>Usage</h3> |
| 15 | |
| 16 | <p>To run <code>layoutopt</code> against a given list of layout resources:</p> |
| 17 | |
| 18 | <pre>layoutopt <file_or_directory> ...</pre> |
| 19 | |
| 20 | <p>For example:</p> |
| 21 | |
| 22 | <pre>$ layoutopt res/layout-land</pre> |
| 23 | <pre>$ layoutopt res/layout/main.xml res/layout-land/main.xml</pre> |
| 24 | |