https://kotlinlang.org logo
#compose
Title
# compose
l

Luke

10/23/2020, 5:49 PM
Hi, I have a
FloatingActionButton
over a
LazyColumnFor
and I’m trying to add bottom padding on the content of the column so the last element is not hidden by the FAB, like this:
Copy code
LazyColumnFor(
    items = itemList, 
    contentPadding = PaddingValues(bottom = 88.dp),
    ...
) { ... }
It works almost perfectly, but the items appear in the padding suddenly as they reach the column content frame. I would prefer them being drawn even if they are only visible in the padding. I guess I’m looking for an equivalent to
android:clipToPadding="false"
. Any tips?
a

Andrey Kulikov

10/23/2020, 5:53 PM
It is a bug: https://issuetracker.google.com/issues/167913500. Plus there is a workaround described in the comment
l

Luke

10/23/2020, 5:59 PM
Looks good! Thanks a lot! 👍
2 Views