Install androidsdk-hierarchyviewer by entering the following commands in the terminal:
sudo apt update sudo apt install androidsdk-hierarchyviewer
Description:
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.
Homepage: http://developer.android.com/tools/help/index.html
Version: 22.2+git20130830~92d25d6-4
Section: universe/java