Jetpack Compose 1.2 packs text improvements

[ad_1]

Jetpack Compose 1.2, Google’s toolkit for making indigenous Android UIs, is now typically offered. Highlights of the update include things like text improvements these as font padding and downloadable fonts.

Jetpack Compose is the Google-proposed way to create new Android apps for telephones, tablets, and foldables. The 1.2 launch was declared steady on July 27.

With downloadable fonts, app builders attain new APIs to obtain Google Fonts asynchronously and to determine fallback fonts with out a sophisticated setup. Added benefits contain more compact APK dimensions and improved program wellness, Google reported, simply because several applications can share the similar font through a provider.

Addressing a leading-voted bug in the Android situation tracker, Jetpack Compose 1.2 will make includeFontPadding a customizable parameter. Google endorses setting this price to untrue, which will empower far more specific alignment of textual content inside of layouts. The approach is to make untrue the default worth in a foreseeable future release.

Jetpack Compose 1.2 can be accessed from the Android developers web page. The Jetpack Compose 1. creation launch was posted previous July.

Other improvements in Jetpack Compose 1.2 include things like:

  • For lazy layouts, grid APIs LazyVerticalGrid and LazyHorizontalGrid have graduated out of experimental position. A new experimental API, LazyLayout, allows builders implement custom made layouts.
  • A WindowInsets course presents modifiers these as windowInsetsPadding, systemBarsPadding, and windowInsetsTopHeight to offer with insets of a device.
  • Modifer.nestedScroll provides nested scroll interoperability with sights.
  • Easing curves support generate animations effectively.
  • Mouse assistance has been enhanced.
  • Bugs have been fastened these types of as enabling animations to stick to the program-outlined “Animation period scale” and allowing scolling of lazy laouts to be disabled by adding a userScrollEnabled parameter.
  • Compose for the Have on OS 1. smartwatch system is now usually accessible.

Copyright © 2022 IDG Communications, Inc.

[ad_2]

Source backlink