Scott Main | 50e990c | 2012-06-21 17:14:39 -0700 | [diff] [blame] | 1 | page.title=Hierarchy Viewer |
| 2 | parent.title=Tools |
| 3 | parent.link=index.html |
| 4 | @jd:body |
| 5 | |
Rich Slogar | f9f81b4 | 2015-03-31 16:49:01 -0700 | [diff] [blame] | 6 | <p>The Hierarchy Viewer allows you to debug and optimize your user |
| 7 | interface. 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 > Android Device Monitor</strong> or click the |
| 14 | Android Device Monitor icon |
| 15 | <img src="{@docRoot}images/tools/hierarchicalviewer-icon.png" alt=""/>. Click the Open Perspectives |
| 16 | icon <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 Main | 50e990c | 2012-06-21 17:14:39 -0700 | [diff] [blame] | 24 | </p> |
| 25 | |
Rich Slogar | f9f81b4 | 2015-03-31 16:49:01 -0700 | [diff] [blame] | 26 | <p class="note"><strong>Note:</strong> The command line version of Hierarchy Viewer has been |
| 27 | deprecated. </p> |
Scott Main | 50e990c | 2012-06-21 17:14:39 -0700 | [diff] [blame] | 28 | |
Scott Main | 50e990c | 2012-06-21 17:14:39 -0700 | [diff] [blame] | 29 | |