A number of new options added to Jetpack Compose in newest steady launch



The Android improvement group has introduced numerous new updates to assist builders maximize their productiveness when growing for Android units. The bulletins come from the annual Android Developer Summit, which is occurring right this moment.   

A lot of the information revolves round Jetpack Compose, which is a UI toolkit that the group launched over a 12 months in the past.  

On the Summit, the group is releasing the most recent steady 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 keeping with the group, it would permit builders to easily outline a BOM fairly 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 gained’t be capable to discover the change throughout their APIs, nonetheless this modification will lay the inspiration for enhancing Modifier efficiency. 

The October ‘22 launch additionally fixes an accessibility bug in Popups and Dialogs. This repair adjustments the utmost elevation from 30dp to 8dp. 

As well as, there’s a new structure kind, LookAheadLayout, that gives details about closing measurement and placement of kids, enabling builders to make extra knowledgeable selections 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 group has additionally introduced the primary steady launch of Compose Materials 3, which incorporates up to date variations of many UI elements, 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 group additionally introduced beta options together with Dwell Edit, composition rendering highlighting, configuring Preview units, and dwell updates in Previews, and canary functions together with Dwell Edit being turned on by default and improved composition monitoring.