Google is committed to advancing racial equity for Black communities. See how.

Window Manager

Window Manager helps application developers support new device form factors and provide a common API surface for different Window Manager features on both old and new platform versions. The initial release is aimed at the foldable devices, and future versions will extend to more display types and window features.
Latest Update Current Stable Release Next Release Candidate Beta Release Alpha Release
February 27, 2020 - - - 1.0.0-alpha01

Declaring dependencies

To add a dependency on Window Manager, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.

Add the dependencies for the artifacts you need in the build.gradle file for your app or module:

dependencies {
    implementation "androidx.window:window:1.0.0-alpha01"


Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.

Create a new issue

See the Issue Tracker documentation for more information.

Version 1.0.0

Version 1.0.0-alpha01

February 27, 2020

androidx.window:window:1.0.0-alpha01 and androidx.window:window-extensions:1.0.0-alpha01 are released. Version 1.0.0-alpha01 contains these commits. This is the first release of the Window Manager library.

New features

  • DisplayFeature: This new API identifies disruptions in the continuous flat screen surfaces such as hinges or folds
  • DeviceState: This new API provides the current posture of the phone from a list of defined postures (For example, CLOSED, OPENED, HALF_OPENED, etc.)