Create spatial layouts

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

With Jetpack Compose for XR, you can use spatialized components like rows and columns to build spatial UI and layouts using a familiar, declarative Compose model. This lets you extend your existing Android UI into 3D space or build entirely new immersive 3D apps.

This library also provides subspace composeables, such as spatial panels and orbiters, which let you place your existing 2D Compose or Views-based UI in a spatial layout. Other subspace composeables handle other types of spatial use cases, such as SceneCoreEntity that lets you place entities like 3D models relative to your UI.

Develop UI XR components orbiter generic example

Guides

This section includes the following developer guides:

Layout components

Material Design for spatial UI

Working with existing Views-based layouts