The Android growth workforce has introduced quite a few new updates to assist builders maximize their productiveness when growing for Android gadgets. The bulletins come from the annual Android Developer Summit, which is going on at the moment.
A lot of the information revolves round Jetpack Compose, which is a UI toolkit that the workforce launched over a 12 months in the past.
On the Summit, the workforce is releasing the newest secure model of Compose, the October ‘22 launch. One new addition on this launch is the inclusion of a Invoice of Supplies (BOM), which can make it simpler for builders to trace releases of Compose.
In line with the workforce, it is going to enable builders to easily outline a BOM relatively than needing to outline every model of Compose individually within the Gradle dependencies block.
This launch additionally reworks how Modifiers work behind the scenes. Builders received’t have the ability to discover the change throughout their APIs, nonetheless this variation will lay the muse for bettering Modifier efficiency.
The October ‘22 launch additionally fixes an accessibility bug in Popups and Dialogs. This repair modifications the utmost elevation from 30dp to 8dp.
As well as, there’s a new format kind, LookAheadLayout, that gives details about closing measurement and placement of kids, enabling builders to make extra knowledgeable choices about intermediate layouts.
Different new options on this launch embody the skills to:
- Implement staggered grids
- Draw textual content on to a Canvas
- Add a variable font
- Add UrlAnnotation to enhance accessibility
- Add hyphenation to textual content
- Swipe to refresh
- Add snapping conduct to lazy lists
The workforce has additionally introduced the primary secure launch of Compose Materials 3, which incorporates up to date variations of many UI parts, together with buttons, playing cards, checkboxes, switches, navigation bars, drawers, and extra.
New updates in Android Studio embody animation coordination, multipreview annotations, and recomposition counts in Format Inspector. The workforce additionally introduced beta options together with Reside Edit, composition rendering highlighting, configuring Preview gadgets, and stay updates in Previews, and canary functions together with Reside Edit being turned on by default and improved composition monitoring.