Showing posts with label Lazy Column. Show all posts
Showing posts with label Lazy Column. Show all posts

Wednesday, December 29, 2021

Lazy Column

Jetpack Compose RecyclerView(LazyColumn) with Material Design

LazyColumn {
items(25) {

// * Card
Card(
modifier = Modifier
.fillMaxWidth()
,
content = {
Text("Card ", modifier = Modifier.padding(16.dp),style = MaterialTheme.typography.labelLarge)
}
)

// * Dividers
ListDivider()

}
}

/**
* Full-width divider with padding
*/

@Composable
fun ListDivider() {
Divider(
modifier = Modifier.padding(horizontal = 14.dp),
color = MaterialTheme.colors.onSurface.copy(alpha = 0.08f)
)
}

..