| Dirk Dougherty | bf15ce6 | 2009-10-23 19:17:12 -0700 | [diff] [blame] | 1 | page.title=layoutopt |
| 2 | @jd:body |
| 3 | |
| 4 | <p><code>layoutopt</code> is a command-line tool that helps you optimize the |
| Robert Ly | 6ffacae | 2010-12-16 17:50:43 -0800 | [diff] [blame] | 5 | layouts and layout hierarchies of your applications.<p> |
| Dirk Dougherty | bf15ce6 | 2009-10-23 19:17:12 -0700 | [diff] [blame] | 6 | |
| Robert Ly | 6ffacae | 2010-12-16 17:50:43 -0800 | [diff] [blame] | 7 | <p>This document is a reference to the available command line options. For more information and sample |
| Scott Main | 300cd26 | 2011-02-08 15:04:42 -0800 | [diff] [blame] | 8 | output of the tool, see <a |
| 9 | href="{@docRoot}guide/developing/debugging/debugging-ui.html#layoutopt">Optimizing layouts with |
| 10 | layoutopt</a>.</p> |
| Dirk Dougherty | bf15ce6 | 2009-10-23 19:17:12 -0700 | [diff] [blame] | 11 | |
| 12 | <h3>Usage</h3> |
| 13 | |
| 14 | <p>To run <code>layoutopt</code> against a given list of layout resources:</p> |
| 15 | |
| Robert Ly | 6ffacae | 2010-12-16 17:50:43 -0800 | [diff] [blame] | 16 | <pre>layoutopt <file_or_directory> ...</pre> |
| Dirk Dougherty | bf15ce6 | 2009-10-23 19:17:12 -0700 | [diff] [blame] | 17 | |
| 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 Ly | 6ffacae | 2010-12-16 17:50:43 -0800 | [diff] [blame] | 22 | |