Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efe861a4 authored by Rich Slogar's avatar Rich Slogar Committed by Android (Google) Code Review
Browse files

Merge "docs: hierarchyviewer updates" into lmp-docs

parents af5f2000 f9f81b49
Loading
Loading
Loading
Loading
+367 B
Loading image diff...
+508 B
Loading image diff...
+20 −9
Original line number Original line Diff line number Diff line
@@ -3,16 +3,27 @@ parent.title=Tools
parent.link=index.html
parent.link=index.html
@jd:body
@jd:body


<p>Hierarchy Viewer allows you to debug and optimize your user 
<p>The Hierarchy Viewer allows you to debug and optimize your user
interface. It provides a visual representation of the layout's View hierarchy
interface. It provides a visual representation of the layout's View hierarchy
(the Layout View) and a magnified inspector of the display (the Pixel Perfect View). 
(the Layout View) and a magnified inspector of the display (the Pixel Perfect View). </p>
</p>

<p>To start the Hierarchy Viewer, do one of the following: </p>


<p>To start Hierarchy Viewer, enter the following command from the SDK <code>tools/</code> directory:</p>
<ul>
  <pre>hierarchyviewer</pre>
<li> From Android Studio, choose <strong>Tools &gt; Android Device Monitor</strong> or click the
</ol>
Android Device Monitor icon
<img src="{@docRoot}images/tools/hierarchicalviewer-icon.png" alt=""/>. Click the Open Perspectives
icon <img src="{@docRoot}images/tools/studio-DDMS-open-perspective-icon.png" alt=""/> and select
<strong>Hierarchy View</strong>. </li>
<li>From the SDK <code>tools/</code> directory, enter:
  <pre>monitor</pre> </li>
</ul>


<p>For more information on how to use Hierarchy Viewer, see 
<p>For more information on how to use the Hierarchy Viewer, see
<a href="{@docRoot}tools/debugging/debugging-ui.html">Debugging and Profiling UIs</a>
<a href="{@docRoot}tools/debugging/debugging-ui.html">Optimizing Your UI</a>.
</p>
</p>


<p class="note"><strong>Note:</strong> The command line version of Hierarchy Viewer has been
deprecated. </p>