Alexander Sitnikov
08/08/2021, 10:23 AMAlexander Sitnikov
08/08/2021, 10:24 AMScaffold(
modifier = Modifier.fillMaxSize(),
floatingActionButton = {
FloatingActionButton(onClick = { /*TODO*/ }) {
Icon(Icons.Default.Phone, contentDescription = null)
}
}
) {
LazyColumn(Modifier.fillMaxSize()) {
items((1..100).toList()) { item ->
ListItem {
Text("Item #$item")
}
}
}
}
Alexander Sitnikov
08/08/2021, 10:24 AMAlexander Sitnikov
08/08/2021, 1:45 PMBox(Modifier.fillMaxSize()) {
Column(Modifier.verticalScroll(rememberScrollState())) {
for (item in 1..100) {
Text("Item #$item", Modifier.fillMaxSize())
}
}
Box(
Modifier
.align(Alignment.Center)
.size(20.dp)
.background(Color.Magenta)
.clickable { }
)
}
nglauber
08/09/2021, 2:03 PMBox
, the last element is the one in front of the others, following the same logic I mentioned.