Posted by Maru Ahues Bouza – Product Administration Director
Pixel simply introduced the newest units coming to the Android ecosystem, together with Pixel 9 Professional Fold and Pixel Watch 3. These units convey innovation to the foldable and wearable areas, with bigger display sizes and distinctive efficiency.
Not solely are these units thrilling for customers, however they’re additionally necessary for builders to think about when constructing their apps. To organize you for the brand new Pixel units and all of the improvements in giant screens and wearables, we’re diving into every part you could find out about constructing adaptive UIs, creating nice Put on OS 5 experiences, and enhancing your app for bigger watch shows.
Constructing for Pixel 9 Professional Fold with Adaptive UIs
Pixel unveiled their new foldable, Pixel 9 Professional Fold with Gemini, at Made By Google. This machine has the most important internal show on a cellphone1 and is 80% brighter than final yr’s Pixel Fold. When it’s folded, it’s identical to a daily cellphone, with a 6.3-inch entrance show. Customers have choices for how one can interact and multitask primarily based on the display they’re utilizing and the folded state of their machine – that means there are a number of completely different experiences that builders needs to be contemplating when constructing their apps.
Builders will help their app look nice throughout the 4 completely different postures – internal, entrance, tabletop, and tent – accessible on Pixel 9 Professional Fold by making their app adaptive. By dynamically adjusting their layouts—swapping elements and exhibiting or hiding content material primarily based on the accessible window measurement moderately than merely stretching UI components—adaptive apps take full benefit of the accessible window measurement to offer an awesome person expertise.
When constructing an adaptive app, our core steering stays the identical – use WindowSizeClasses to outline particular breakpoints in your UI. Window measurement courses allow you to alter your app format because the show area accessible to your app modifications, for instance, when a tool folds or unfolds, the machine orientation modifications, or the app window is resized in multi‑window mode.
Introduced at Google I/O 2024, we’ve launched APIs that, beneath the hood, benefit from these WindowSizeClasses for you. These APIs present a brand new strategy to implement frequent adaptive layouts in Compose. The three elements within the library – NavigationSuiteScaffold, ListDetailPaneScaffold, and SupportingPaneScaffold – are designed that can assist you construct an adaptive app with UI that appears nice throughout window sizes.
Lastly, builders who need to construct a very distinctive expertise for foldables ought to think about supporting tabletop mode, the place the cellphone sits on a floor, the hinge is in a horizontal place, and the foldable display is half opened. You need to use the Jetpack WindowManager library, leveraging FoldingFeature.State and FoldingFeature.Orientation to find out whether or not the machine is in tabletop mode. As soon as you realize the posture the machine is in, replace your app format accordingly. For instance, media apps that adapt to tabletop mode usually present audio data or a video above the fold and embrace controls and supplementary content material just under the fold for a hands-free viewing or listening expertise.
Even video games are making use of foldable options: from racing video games like Asphalt Legends Unite and Disney Speedstorm to motion video games like Fashionable Fight 5 and Dungeon Hunter 5, Gameloft optimized their video games in an effort to play not simply in full-screen but in addition in split-view tabletop mode which offers a handheld recreation console expertise. With useful options like detailed recreation maps and enhanced controls for extra immersive gameplay, you’ll be drifting round corners, leveling up your character, and beating the dangerous guys in report time!
Getting ready for Pixel Watch 3: Put on OS 5 and Bigger Shows
Pixel Watch 3 is the newest smartwatch engineered by Google, designed for efficiency inside and outside. With this new machine, there are additionally new issues for builders. Pixel Watch 3 rings within the secure launch of Put on OS 5, the newest platform model, and has the most important show ever from the Pixel Watch collection – that means builders ought to take into consideration the updates launched in Put on OS 5 and the way their UI will look on assorted show sizes.
Put on OS 5 relies on Android 14, so builders ought to pay attention to the system conduct modifications particular to Android 14. The system contains help for the privateness dashboard, giving customers a centralized view of the information utilization for all apps operating on Put on OS 5. For apps which have up to date their goal SDK model to Android 14, there are just a few extra modifications. For instance, the system strikes always-on apps to the background after they’re seen in ambient mode for a sure time period. Moreover, watches that launch with Put on OS 5 or greater will solely help watch faces that use the Watch Face Format, so we suggest that builders migrate to utilizing the format. You may see all of the conduct modifications it is best to put together your app for.
One other necessary consideration for builders is that the Pixel Watch 3 is on the market in two sizes, 41 mm and 45 mm. Each sizes provide extra show area than ever2, having 16% smaller bezels, which supplies the 41 mm watch 10% extra display space and the 45 mm watch 40% extra display space than on the Pixel Watch 2! As a developer, assessment and apply the ideas on constructing adaptive layouts to provide customers an optimum expertise. We created instruments and steering on how one can develop apps and tiles for various display sizes. This steering will assist to construct responsive layouts on the wrist utilizing the newest Jetpack libraries, and make use of Android Studio’s preview help and screenshot testing to substantiate that your app works properly throughout all screens.
Be taught extra about all these thrilling updates within the Constructing for the way forward for Put on OS technical session, shared throughout this yr’s Google I/O occasion.
Be taught extra about how one can get began making ready your app
With these new bulletins from Pixel, it’s a good time to ensure your app appears to be like nice on all of the screens your customers love most. Get your app prepared for big screens by constructing adaptive layouts and study extra about all issues Put on OS on our Put on OS developer web site. For recreation builders, make sure you learn our giant display recreation optimization information and examine the pattern challenge to study the very best practices for leveling up your recreation for big display and foldable units.
For much more of the newest from Android, tune into the Android Present on August twenty seventh. We’ll discuss Put on OS, adaptive apps, Jetpack Compose, and extra!
1 Amongst foldable telephones in america. Primarily based on internal show.
2 In contrast with Pixel Watch 2.