Does Android Studio have a hierarchy viewer?

I tried searching here, but could not find the answer.

I'm looking for a way to start the Hierarchy Viewer from Android Studio, instead of launching it on the command line. I recently switched to Android Studio from Eclipse, and this functionality was available under the DDMS toolkit in this IDE.

I looked under the Android toolbar, and there you can see the functionality of the screen, but not the hierarchy viewer. I also looked under Tools> Android in the menu system, and it does not exist either.

+50
android android-studio hierarchyviewer
Aug 19 '14 at 18:22
source share
2 answers

DDMS, hierarchy viewer, openGL Tracer, etc. everyone has moved to Android Device Monitor. To access:

  • In Android Studio: Tools> Android> Android Device Monitor
  • In ADM: Window> Vista
  • Click View Hierarchy.
+82
Aug 19 '14 at 18:38
source share

Another option is to use the new Inspector Layout introduced in Android Studio 2.2.

Android Studio 3

The Layout Inspector can only be found under Tools> Android> Layout Inspector

Android Studio 2.2

Instructions for the source link on how to open the layout inspector:

To open the Inspector Layout, first run the application on the connected device or emulator. Then open the Android Monitor window oEcRO.png , select devices and applications, and then click Layout Inspector SEHqu.png . You can also open it by clicking Tools > Android > Layout Inspector in the bar menu.

+20
Sep 19 '16 at 18:49
source share



All Articles