Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 1.99 KB

List.md

File metadata and controls

34 lines (21 loc) · 1.99 KB

List

Explore the various ways to show a list of items in Jetpack Compose and how to use them in your application.

LazyRow/Column LazyVerticalGrid Advance List

LayRow/Column

As the name suggests, the difference between LazyColumn and LazyRow is the orientation in which they lay out their items and scroll. LazyColumn produces a vertically scrolling list, and LazyRow produces a horizontally scrolling list. Find example of the currently shown screen here

Lazy Vertical Grid

The LazyVerticalGrid composable provides support for displaying items in a grid. A Lazy vertical grid will display its items in a vertically scrollable container, spanned across multiple columns.

Advance List

For implementing an advanced list, data can be efficiently retrieved from remote APIs, processed using Kotlin Flows for reactive data handling, and then displayed using the Paging library to ensure smooth and performant data loading. This approach allows for dynamic content updates, seamless pagination, and an overall optimized user experience.