Install androidsdk-hierarchyviewer by entering the following commands in the terminal:
sudo apt update sudo apt install androidsdk-hierarchyviewer
Tool to debug and optimize Android user interface
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). . This package is required only when you want to run DDMS as a stand-alone application. For usage from within Eclipse IDE, install eclipse-adt.