andriod studio comes with using a positioning tool layout inspector of
- Apply to debug package
- Not suitable for use uiautomatorviewer screenshot packages
for certain safety factors app screenshots can not control, by using the command screenshots cut out picture size 0size
#截屏操作
adb shell screencap -p /data/local/tmp/tmp.png
#下载截屏到本地
adb pull /data/local/tmp/tmp.png`
use of specific steps layout inspector
-
Open andriod studio, create a new blank project
-
Import debug package
-
Create a simulator / real machine, open the developer mode, the debug installation package
-
Open layout inspector under the tool, there is no layout inspector under the tool at the beginning, after the package has to import deg
-
Open the emulator debug packet, selected package name
-
Open the page debug package to be tested, re-click layout inspector, select the entry and then select the page you want to test
-
After selecting the page, andriod studio page mapped to the console, view the tree structure on the left, you can locate elements