Features / UI inspection and design
How to find a view ID and inspect the Android layout hierarchy
Open Inspect Layout in the Dev Tools App, grant page-reading access and use the floating control on the target screen. Select a node to see its available properties and inspect its parents or children.
1. Choose a test screen you can revisit
Open Inspect Layout from the App section and follow the prompts for page access and the floating window. For practice, open the LINE welcome screen and find Log in.
2. Select a node and inspect its properties
- 2.1Read the screen with the floating button, then tap the location you want to inspect. When views overlap, switch between candidate nodes at that position.
- 2.2Check the ID, class, text, description, click or selection state, bounds and dimensions.
- 2.3Follow the hierarchy to a parent or child. Save the layout if you need to share it. Enable auto-hide if the floating control is in the way.
- 2.4In the properties panel, use the up and down arrows to move to a parent or child, and the left and right arrows to move between siblings. The highlight and properties follow the selected node. The down arrow appears on nodes with children.
On the LINE welcome screen (jp.naver.line.android), the Log in label is an android.widget.TextView with the resource ID jp.naver.line.android:id/lds_box_button_text. Use the up arrow to examine the enclosing button.



3. Note what each node exposes
The enclosing Log in control exposes jp.naver.line.android:id/login. Record which node you selected so the developer can find the same view. When a node has an empty ID, include its label, class, parent and bounds.
If you use Auto.js (AutoJS) layout analysis to find selectors, Inspect Layout can show the same kinds of node details you need for a selector, including the resource ID, text, bounds and hierarchy. For UI tests, record a stable resource ID when available. Otherwise, check the label and parent together.
