Uncategorized

Google pushes for better Android app support on Galaxy Z Fold 8

Android is a platform of variety, and that’s even more true now with the launch of Samsung’s new Galaxy Z Fold 8 series, which includes what Google refers to as an “ultra-wide foldable.”

In a developer-focused blog post, Google encourages Android app makers to build for the latest foldables by “dropping assumptions about display orientation and size.” Google calls the new Galaxy Z Fold 8 an “ultra-wide foldable,” which hasn’t been a particularly common canvas for Android apps. Only a few devices, including Google’s original Pixel Fold, fit into this category.

Google encourages developers to build with adaptive layouts, track the actual space being used by an app on these foldable displays, and take advantage of new features, like fold awareness which can help apps split wherever a foldable device’s hinge is found.

  • Build fluid, adaptive layouts: Wide aspect ratios and compact vertical heights require fluid UIs that scale responsively. Our updated adaptive design guidance advises considering the window class width first to determine layout changes, then adjusting for height. To let individual components fluidly adapt to the grid, structure your layout using flexible containers that allow your content to automatically wrap, span, and reflow. For design inspiration browse our adaptive sample app and dual-screen design galleries.
  • Track actual app space: Your app’s display space rarely matches the physical device size, especially on an ultra-wide screen during multi-window, split-screen, or multitasking states. Sometimes even the orientations differ. Leverage Window Size Classes using the Jetpack Window Manager library to calculate the exact space your app occupies.

Another area Google mentions is how apps handle the camera on foldable devices, such as accounting for the camera’s position when a device is folded or unfolded. Apps that assume a fixed portrait orientation for unfolded devices “will likely suffer from sideways, stretched, or cropped previews during these folding transitions,” Google says. CameraX can account for this.

Advertisement – scroll for more content

This post also confirms Galaxy Z Fold 8 and its accompanying releases are the first devices with Gemini Nano 4 support, as well as reiterating changes in Wear OS in acknowledgment of the Galaxy Watch 9 launch, which comes pre-installed with that latest version.

Galaxy Z Fold 8 is available for pre-order now.

More on Samsung:

Follow Ben: Twitter/XThreads, Bluesky, and Instagram

Add 9to5Google as a preferred source on Google
Add 9to5Google as a preferred source on Google

FTC: We use income earning auto affiliate links. More.



Source link

Visited 1 times, 1 visit(s) today

Leave a Reply

Your email address will not be published. Required fields are marked *