Jetpack Compose provides native assist for vertical and horizontal paging


The Android improvement group has introduced a number of new options in model 1.4 of the UI toolkit Jetpack Compose.
First, there’s now assist for vertical and horizontal paging. This permits customers to flip via content material with a web page flip animation, as in the event that they have been truly studying a bodily ebook or journal. Beforehand in an effort to get this performance, Android builders would undergo the Accompanist library, which is now being changed by the built-in paging assist.
There are additionally new Circulate Layouts, which can be utilized to format gadgets in dynamically sized containers. This permits gadgets to stream into the following row or column after they run out of house.
One other enchancment on this launch is that the “Textual content” and “TextField” are rather more customizable. “Textual content” has new options for drawing outlined textual content, enhancing textual content transition and legibility throughout animations, choices for line breaking habits, hyphenation assist, and extra.
The Android group can be persevering with its refactor of Modifier, and several other foundational modifiers have been moved to the Modifier.Node structure, resembling “graphicsLayer,” decrease degree focus modifiers, padding, and offset.
There have been additionally enhancements to a number of present options and bug fixes, which you’ll learn extra about within the launch notes right here.