Debug your app layout for augmented experiences with Layout Inspector

Applicable XR devices
This guidance helps you build experiences for these types of XR devices.
AI Glasses

While you're building augmented experiences with Jetpack Compose Glimmer components for AI glasses, you can inspect and debug your layout with the Layout Inspector in Android Studio.

Open the Layout Inspector

  1. In Android Studio, run your app.
  2. When you see a screen you want to inspect, select Tools > Layout Inspector from the menu bar.

    The Layout Inspector opens, along with the Attributes and the Component Tree subpanels.

  3. In the Component Tree, find the UI component for the AI glasses. Click the component to inspect its attributes.

    Layout Inspector view showing the AI glasses UI in the Layout
Display.

Inspect component attributes

As you interact with your app, click Toggle Deep Inspect to select a component directly on the emulated devices. All of the layout attributes for a selected component appear in the Attributes panel.

Layout Inspector view showing the AI glasses UI with deep inspect.