android studio 导入hierarchy viewer,Does Android Studio have a Hierarchy Viewer?

问题

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.

回答1:

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

In Android Studio: "Tools" menu > Android > Android Device Monitor

In ADM: "Window" Menu > Perspective

Click on Hierarchy Viewer.

回答2:

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

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

299a2f80cb0b742740be0e2ad41af18d.png window, select your

device and app process, and then click Layout Inspector

47992896dd96d43e82f40a27af6c64f7.png. You can also

open it by clicking Tools > Android > Layout Inspector in the menu

bar.

来源:https://stackoverflow.com/questions/25390405/does-android-studio-have-a-hierarchy-viewer

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值