LoginSignup
6
5

More than 5 years have passed since last update.

Android StudioのLayout Inspector

Last updated at Posted at 2018-08-09

Viewの構造を確認できるAndroid Studioのツール

AndroidのUI開発中、特に動的にLayoutを作成した時の確認に使えそう

Hierarchy Viewerの後継ツールっぽい。 Profile your layout with Hierarchy Viewer

検証環境

Android Studio 3.1.3

使い方

  1. 実機orエミュレーターでアプリを立ち上げる

  2. Viewの構造をチェックしたい画面に、実機orエミュレーターを操作しておく

  3. Tools > Layout Inspector


  4. プロセスを実行中の端末のactivityを選択

  5. project-name/captures/以下に.liファイルが保存されるので、Android Studio上で開く


    Viewの構造や属性が分かるので、期待するLayoutになっているかの確認に使える。

参考

公式ドキュメント - Layout Inspector でレイアウトをデバッグする

6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5