allan.conda
10/05/2020, 1:57 PMitem{}
multiple times, since it says
Adds a single item to the scope.
in the doc.
LazyColumn {
item { Text("Title") }
item { Header() }
items(items) { ... }
}
// or
LazyColumn {
item {
Text("Title)
Header()
}
items { ... }
}
Andrey Kulikov
10/05/2020, 2:09 PMhorizontalAlignment
alignment on LazyColumn
. but it will be applied for all the items. if you define your title and the header with two separate item calls it will work a bit more efficient as once you will scroll up so the header is visible it will only need to create a Header for displaying, not both title and header. but you can put both of them in the same item
, it also worksallan.conda
10/05/2020, 2:16 PMitem {
Column(Modifier.fillMaxSize()) {
CircularProgressIndicator(modifier = Modifier.align(Alignment.CenterHorizontally))
}
}