- Home Startseite ホーム 主页 首頁
- SDK
- Dev Guide Handbuch Guía Guide Guida 開発ガイド 开发人员指南 開發指南
- Reference Referenz Referencia Référence Riferimento リファレンス 参考 參考資料
- Resources
- Videos ビデオ
- Blog ブログ 博客 網誌

Android.com

Tools >

# layoutopt

`layoutopt` is a command-line tool that helps you optimize the layouts and layout hierarchies of your applications.

This document is a reference to the available command line options. For more information and sample output of the tool, see Optimizing layouts with layoutopt.

### Usage

To run `layoutopt` against a given list of layout resources:

    layoutopt <file_or_directory> ...

For example:

    $ layoutopt res/layout-land

    $ layoutopt res/layout/main.xml res/layout-land/main.xml

↑ Go to top

← Back to Tools