Uiautomatorviewer is a tool that comes with the Android SDK to provide users with control information viewing services by taking screenshots and parsing the XML layout file.
The entire interface is divided into four regions:
(1) Work area (top)
A total of 4 buttons. From left to right: open a saved layout, get a detailed layout, get a clean layout, save a layout. Click Save, will store two files, one is picture file, one is. uix file (XML layout structure)
The second button (device screenshoot Uiautomator dump) and the third button (device Screenshoot with compressed Hierarchy uiautomator dump– Compressed) The difference is that the second button renders the entire layout, and the third button only renders a useful control layout. For example, if a frame exists, but only the decoration function, then when you click the Third button, it may not be rendered.
(2) area (left), showing the layout picture of the current screen display
(3) Layout area (top right), in the form of an XML tree, showing control layout
(4) Control property area (bottom right), control properties are displayed when a control is clicked
Reference link:78226810
App Automation tools: UI Automator Viewer Tools related instructions for use