Does Android Studio have a Hierarchy Viewer or Layout Inspector?

AndroidAndroid StudioHierarchyviewerLayout Inspector

Android Problem Overview


I tried searching on here but couldn't find the answer.

I'm looking for a way to launch the Hierarchy Viewer from within Android Studio, rather than having to launch it at the command-line. I've recently migrated to Android Studio from Eclipse, and this functionality was available under the DDMS set of tools in that IDE.

I've looked under the "Android" toolbar, and can see the screen-shot functionality there, but not the hierarchy viewer. I've also looked under Tools > Android in the menu system, and it's not there either.

Android Solutions


Solution 1 - Android

DDMS, Hierarchy Viewer, openGL Tracer etc all moved into Android Device Monitor. To access:

  1. In Android Studio: "Tools" menu > Android > Android Device Monitor
  2. In ADM: "Window" Menu > Perspective
  3. Click on Hierarchy Viewer.

Solution 2 - Android

Android Studio 4.0

There is a new live layout inspector. View > Tool Windows > Layout Inspector

Later versions of Android Studio 4.x also have it directly under Tools > Layout Inspector

For more information on its usage see this article or the developer documentation.

Android Studio 3.2

The layout inspector is now found directly under tools. Tools > Layout Inspector

Android Studio 3

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

Android Studio 2.2

Instructions from original link on how to open the Layout Inspector:

> To open the Layout Inspector, first launch your app on a connected > device or emulator. Then open the Android Monitor http://i.stack.imgur.com/oEcRO.png" width="20" height="20"> window, select your > device and app process, and then click Layout Inspector http://i.stack.imgur.com/SEHqu.png" width="20" height="20">. You can also > open it by clicking Tools > Android > Layout Inspector in the menu > bar.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionCarl AndersonView Question on Stackoverflow
Solution 1 - AndroidAlexander LucasView Answer on Stackoverflow
Solution 2 - AndroidGeorge MulliganView Answer on Stackoverflow