blob: da4cc1e9b261211955a2664356573eb90d1b1b60 [file] [log] [blame]
Scott Main50e990c2012-06-21 17:14:39 -07001page.title=Hierarchy Viewer
2parent.title=Tools
3parent.link=index.html
4@jd:body
5
Rich Slogarf9f81b42015-03-31 16:49:01 -07006<p>The Hierarchy Viewer allows you to debug and optimize your user
7interface. It provides a visual representation of the layout's View hierarchy
8(the Layout View) and a magnified inspector of the display (the Pixel Perfect View). </p>
9
10<p>To start the Hierarchy Viewer, do one of the following: </p>
11
12<ul>
13<li> From Android Studio, choose <strong>Tools &gt; Android Device Monitor</strong> or click the
14Android Device Monitor icon
15<img src="{@docRoot}images/tools/hierarchicalviewer-icon.png" alt=""/>. Click the Open Perspectives
16icon <img src="{@docRoot}images/tools/studio-DDMS-open-perspective-icon.png" alt=""/> and select
17<strong>Hierarchy View</strong>. </li>
18<li>From the SDK <code>tools/</code> directory, enter:
19 <pre>monitor</pre> </li>
20</ul>
21
22<p>For more information on how to use the Hierarchy Viewer, see
23<a href="{@docRoot}tools/debugging/debugging-ui.html">Optimizing Your UI</a>.
Scott Main50e990c2012-06-21 17:14:39 -070024</p>
25
Rich Slogarf9f81b42015-03-31 16:49:01 -070026<p class="note"><strong>Note:</strong> The command line version of Hierarchy Viewer has been
27deprecated. </p>
Scott Main50e990c2012-06-21 17:14:39 -070028
Scott Main50e990c2012-06-21 17:14:39 -070029