Jetpack WindowManager 1.5 is s... Note

Jetpack WindowManager 1.5 is stable

Jetpack WindowManager 1.5.0 is a stable release focused on enhancing adaptive UI development across diverse Android devices. This update introduces two new width window size classes: Large (1200-1600dp) and Extra-large (≥1600dp). These new breakpoints are crucial for optimizing user experiences on larger displays, such as those enabled by connected external displays. Developers can leverage these new size classes to design more productive, information-dense layouts, moving beyond simply scaling tablet designs. The window size classes are calculated using the computeWindowSizeClass() function, now supporting BREAKPOINTS_V2 for the larger breakpoints. The Compose Material 3 Adaptive library has also been updated to support these new width size classes in its scaffold directives. Additionally, WindowManager 1.5 adds auto-save and restore functionality for activity embedding splits, simplifying state management for developers. WindowMetrics can now be calculated from an Application context, offering greater flexibility. To adopt these new features, developers should update their app dependencies to version 1.5.0 of the WindowManager library. This release continues to advance the creation of adaptive applications across all Android form factors.