Develop

Meta VR Layout SDK for Compose

Get from Maven
Updated: Nov 3, 2026|
Version
1.1.0
The Meta VR Layout SDK allows Android 2D app developers to easily manage their app's visual representation in the home environment. It exposes the ability to create and anchor Spatial Windows in a way that feels natural in Jetpack Compose.

Version 1.1.0 Release Notes

Meta VR Layout SDK for Compose 1.1.0


This release adds more control over spatial window appearance and positioning, with new APIs for opaque background colors and exact planar offsets.

New features

  • Window background colors: Added WindowModifier.background(color) to set an opaque background behind spatial window content, including areas exposed during resizing. When no color is specified, the window uses the app theme’s android:windowBackground.
  • Exact planar offsets: Added an offset(x, y, z) overload that accepts X and Y values in density-independent pixels (dp), enabling windows to align with UI elements beyond the existing semantic offset tiers. Offsets apply relative to the parent window after anchoring and are rounded to whole dp. Depth (z) continues to use semantic tiers.