I only experience this bug on Android 9, API 28. I’ve tested API 29-30-31 and they all work fine. (didn’t test below API 28 so far)
Weirdly enough, this is fixed if I bump specifically the foundation compose version to
androidx.compose.foundation:foundation:1.1.0-beta02
or
beta03
anything below is still broken. While keeping the rest of the compose dependencies to
1.0.4
or
1.0.5
As a side note, the outer view bounds are visible in the layoutInspector and with “Show layout bounds” enabled, but not its contents. Indicating that it’s definitely not a problem with the item not taking the space that it needs to.
And as a even more weird note, in the video you can show that the buttons literally show up when I just enable the layout preview debugging option 🤯
My concern is that the
commits for that version do not seem to mention anything related to what I am experiencing. So is this a known bug with this older API version? Was it fixed on purpose? Or if not it might just break again sometime in the future and I should try to make a minimum reproducible case to have people look into it đź‘€