The UI AutomatorViewer tool provides a graphical user interface (GUI) to inspect the layout of an Android application (both static and dynamic layout). This tool can be used to find out the UI components visible on the screen and the properties associated with them. It is very useful for developing and testing Android applications. The following sections explain how to use UI AutomatorViewer to inspect the layout of an Android application.
Inspecting the Layout
To inspect the layout of an Android application:
1. Launch UI AutomatorViewer from the command line.
2. In the Device Screenshot tab click on the Refresh button. A screenshot of the current screen is displayed in the right pane.
3. In the left pane select the component that you want to inspect from the list of UI components that are displayed. The properties associated with the selected component are displayed in the right pane.
UiAutomatorViewer is a tool that allows you to inspect the UI of an Android application to find out the hierarchy of views and widgets displayed. This is useful for creating UI tests or for exploring an application's UI. The tool can be launched from the command line or from Android Studio. In this tutorial, we will launch UiAutomatorViewer from Android Studio and use it to inspect the UI of a simple Android application.
UI AutomatorViewer is a tool that provides a graphical interface to inspect the layout of an Android UI. By using this tool you can compare the layout of your app to the design mockups and ensure that your UI meets the design guidelines. This tutorial will show you how to use UI AutomatorViewer to inspect the layout of an Android app.