William Barbosa
07/27/2020, 12:59 PMitem == lastItem
inside the loop and updating the bottom padding accordingly. Is there a way of doing what we did in xml files by adding android:clipToPadding="false"
so that the padding was always added at the end of the scroll or is checking item by item the Compose Way™️? 🤔Timo Drick
07/27/2020, 1:05 PMWilliam Barbosa
07/27/2020, 1:19 PMclipToPadding
modifier. I saw a clipToBounds()
(with is a wrapper to drawLayer(clip = true)
), so I tried drawLayer(clip = false)
but that did not work 🤔Timo Drick
07/27/2020, 2:14 PMBox(Modifier.padding(bottom = (space + FabSize + space))) {
VerticalLayoutList(listPosition = scrollerPosition, items = fanartList
) { item ->
Column(Modifier.swipeToRemove(onRemoved = { onFanartAction(item, InventoryItemAction.DELETE) })) {
Box(modifier = Modifier.fillMaxSize()
.padding(start = space, end = space, top = space)
.clickable(onClick = { onFanartAction(item, InventoryItemAction.ACTIVATE) })) {
InventoryFanartListItemView(item)
}
}
}
}
Unfortunately the new LazyColumnItems composable do call clipToBounds 😞
I am using a custom implementation because i also need to keep the scroll position. And my custom implementation do not clip:
https://gitlab.com/timod/compose-playground/-/blob/master/compose_list/src/main/java/de/drick/compose/list/LayoutList.kt