How can I use Layout Inspector for apps installed from Google Play?

只谈情不闲聊 提交于 2021-02-07 02:47:42

问题


I was trying to use LayoutInspector for apps from Google Play. I have a rooted device so when I do "Show all processes", all the running apps developed by me are displayed but not the official ones.


回答1:


you ca go to the /Users/.../Library/Android/sdk/tools/monitor

and select dump view




回答2:


You can use UiAutomator2 Viewer ( a tool from android SDK)

{ your sdk path} \tools\bin\uiautomatorviewer.bat

This tool shows the complete hierarchy and attributes of all elements visible on the device display (no matter which app is running).

Also in the "Katalon studio" we have a tool named Mobile Spy which do the same + full Xpath

Note that you should have adb server running with connecting the device. so the "adb devices" must return device id.



来源:https://stackoverflow.com/questions/50668998/how-can-i-use-layout-inspector-for-apps-installed-from-google-play

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!