Posted by Fahd Imtiaz, Senior Product Supervisor and Miguel Montemayor, Developer Relations Engineer, Android Developer Expertise
Right this moment at Galaxy Unpacked, Samsung unveiled its newest lineup of foldable and wearable units. For builders, because of this the number of type elements, display sizes, and system postures your app must help is increasing as soon as once more.
With units just like the Galaxy Z Fold8, the ecosystem is increasing to incorporate {hardware} with a landscape-first pure orientation and a wider facet ratio in its primary show state. Whether or not a person is unfolding a big show, flipping open a canopy display, or glancing at their wrist, customers count on a flawless expertise. That will help you meet this second, we’re sharing actionable steerage and new tooling updates to allow you to construct adaptively proactively.
Rethink structure structure for dynamic shows, together with ultra-wide foldables
Constructing for the most recent foldables means dropping assumptions about show orientation and measurement. That is very true for the Galaxy Z Fold8, which adopts an ultra-wide show, including to the number of facet ratios to account for. Units with this landscape-first pure orientation present the constraints of hardcoded structure guidelines when customers unfold the system. That’s why we’ve launched devoted steerage for constructing for panorama foldables and trifolds.
To construct a responsive UI that handles these physics seamlessly, give attention to the next core pillars:
- Construct fluid, adaptive layouts: Large facet ratios and compact vertical heights require fluid UIs that scale responsively. Our up to date adaptive design steerage advises contemplating the window class width first to find out structure adjustments, then adjusting for top. To let particular person elements fluidly adapt to the grid, construction your structure utilizing versatile containers that permit your content material to mechanically wrap, span, and reflow. For design inspiration browse our adaptive pattern app and dual-screen design galleries.
- Observe precise app house: Your app’s show house not often matches the bodily system measurement, particularly on an ultra-wide display throughout multi-window, split-screen, or multitasking states. Generally even the orientations differ. Leverage Window Measurement Courses utilizing the Jetpack Window Supervisor library to calculate the precise house your app occupies.


