The Hierarchy Viewer allows you to debug and optimize your user 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).
To start the Hierarchy Viewer, do one of the following:
- From Android Studio, choose Tools > Android > Android Device Monitor or click Android Device Monitor in the toolbar. Click Open Perspectives and select Hierarchy View.
- From the SDK
For more information on how to use the Hierarchy Viewer, see Optimizing Your UI.
Note: The command line version of Hierarchy Viewer has been deprecated.