Foundations

The Android XR system uses interactivity models similar to those in mobile and large-screen apps to help users understand how to use XR. It includes known patterns like the home screen, apps overview, back stack, and more.

To help you build integrated and boundless experiences, Android XR provides natural gesture navigation, multimodal inputs, and new spatial and 3D capabilities.

Home Space and Full Space modes

A user can experience your app in two modes, Home Space and Full Space. In Home Space, a user is able to multitask with your app running side by side with other apps. In Full Space, your app takes center stage as the focus of the user's experience with full access to the immersive capabilities of Android XR.

Person standing at a table with 3 apps open around them.

Home Space

  • Multiple apps run side by side so users can multitask.
  • Any compatible mobile or large screen Android app can operate in Home Space with no additional development.
  • Android apps developed with large screen-optimized guidance adapt best.
  • Home Space supports system environments. It does not support spatial panels, 3D models, or an app's spatial environments.
  • Apps have constrained boundaries.
  • Default size: 1024 x 720dp
  • Minimum size 385 x 595dp, maximum 2560 x 1800dp
  • Apps launch 1.75 meters from a user.
Person standing in a virtual moon crater with an app open in
    front of them. The app has three panels and a 3D pyramid.

Full Space

Recommendation: Add clear visual cues to let users quickly switch between Full Space and Home Space. For example, you can use collapse and expand icons for buttons to trigger transitions.

Give users control over their environment

In Android XR, an environment is the real or virtual space that a user sees while wearing an XR device. It is unconstrained by the physical limitations of mobile and desktop screens.

  • A spatial environment simulates a fully immersive virtual space that takes over a user's physical space. Available in Full Space only. For example, a user watches a movie in a virtual luxury cinema.
  • A passthrough environment adds digital elements to a user's physical surroundings. For example, a user opens multiple large-screen apps while simultaneously seeing their real-life room.

Learn how to build spatial environments in Full Space.

System environments

Users can choose environments provided by the Android XR system. These system environments can be used in Home Space or Full Space. If an app doesn't define a specific environment, it will inherit the system environment — either in passthrough or a virtual environment.

Design with multimodal inputs

It's essential to design immersive applications that are accessible to a wide range of users. You should allow users to customize input methods to suit their individual preferences and abilities.

To help you achieve this, Android XR supports a variety of input methods, including hand and eye tracking, voice commands, Bluetooth-connected keyboards, traditional and adaptive mice, trackpads, and six degrees of freedom (6DoF) controllers. Your app should automatically work with these built-in modalities.

Make sure you provide visual or audio feedback to confirm user actions for any interaction model you choose.

Learn about design considerations for XR accessibility.

5 icons representing multimodal input options: hand tracking, voice, eye tracking, keyboard and mouse, and controllers.

Hand tracking enables natural interactions. Most gestures should be comfortable to perform repeatedly, and not require large hand or arm movements for extended periods of time. If you add virtual hands, ensure they are accurately tracked. If you add special gestures, small localized gestures are preferable to large sweeping movements.

Voice commands are useful for hands-free interaction. Users can dictate text inputs and perform some app interactions with spoken instructions through Gemini. For example, a user might say "Open Google Maps" to open that app.

Eye tracking enables effortless interactions, such as selecting objects by looking at them. To minimize eye strain you can offer alternative input methods.

Peripheral devices. Android XR supports external devices like a Bluetooth keyboard, mouse, and 6DoF controller. For controllers, ensure intuitive button mappings, and consider allowing users to remap buttons to suit their preferences.

Understanding system gestures

Android XR extends familiar mobile actions like press, pinch, and swipe to a gesture-based navigation system.

Users navigate by facing their primary hand's palm inward, pinch and holding their index finger and thumb. Their hand moves up, down, left, or right, and releases to select an option. Users can set their primary hand preference in Input Settings.

Users can open the gesture navigation menu anywhere, anytime to:

  • Go back: Operates the same as the back stack on Android mobile, returning to the previous item.
  • Launcher: Takes users to the home screen.
  • Recents: Users can open, close, and switch apps.

Privacy considerations

Android's privacy recommendations apply to building XR apps. Remember to obtain user consent before collecting any personal identifiable information, limit user data collection to the essentials, and store it securely.

Follow Android XR's app quality guidelines.