Jetpack Compose 1.2, Google’s toolkit for building native Android UIs, is now readily available as a beta launch. Highlights of the update incorporate text enhancements such as font padding and downloadable fonts.

With downloadable fonts, application developers achieve new APIs to entry Google Fonts asynchronously and to define fallback fonts without having a elaborate setup. Rewards contain lesser APK measurements and enhanced program well being, Google reported, for the reason that multiple apps can share the same font via a service provider.

Addressing a top rated-voted bug in the Android issue tracker, Jetpack Compose 1.2 would make includeFontPadding a customizable parameter. Google suggests setting this price to untrue, which will permit additional precise alignment of text in layouts. The strategy is to make phony the default worth in a future release.

The Jetpack Compose 1.2 beta, released Could 11, can be accessed from the Android builders web page. The Jetpack Compose 1. creation release was revealed final July.

Other enhancements in Jetpack Compose 1.2 include:

  • New equipment and advice for enhancing app performance.
  • A textual content magnifier widget that can make picking textual content less complicated.
  • For lazy layouts, grid APIs LazyVerticalGrid and LazyHorizontalGrid have graduated out of experimental standing. A new experimental API, LazyLayout, allows builders put into action tailor made layouts.
  • When embedding a scrolling composable in CoordinatorLayout from the see procedure, builders can make certain that scroll behaviors are interoperable, therefore making it much easier to set up a collapsible toolbar.
  • Window measurement lessons highlighted in the release make it easier to establish resizable layouts. These are in an alpha point out as aspect of new Substance 3 libraries.
  • To support developers use Compose far more properly, the Android Studio Dolphin IDE release, now in beta, adds attributes for Compose development. An Animation Coordination software allows developers see and scrub through all animations at once when Multipreview Annotation aids setting up for a number of monitor sizes.
  • Compose for the Wear OS smartwatch system has moved to a beta stage.

Copyright © 2022 IDG Communications, Inc.