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 Device Monitor or click the Android Device Monitor icon . Click the Open Perspectives icon and select Hierarchy View.
- From the SDK
tools/
directory, enter:monitor
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.