use of specific steps layout inspector

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

  1. Open andriod studio, create a new blank project

  2. Import debug package

  3. Create a simulator / real machine, open the developer mode, the debug installation package

  4. Open layout inspector under the tool, there is no layout inspector under the tool at the beginning, after the package has to import deg

Here Insert Picture Description

  1. Open the emulator debug packet, selected package name
    Here Insert Picture Description

  2. Open the page debug package to be tested, re-click layout inspector, select the entry and then select the page you want to test
    Here Insert Picture Description

  3. After selecting the page, andriod studio page mapped to the console, view the tree structure on the left, you can locate elements
    Here Insert Picture Description

Published 99 original articles · won praise 43 · views 160 000 +

Guess you like

Origin blog.csdn.net/mayanyun2013/article/details/104499611