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

Fabio Berta

12/11/2023, 1:19 PM
Hi, I'd like to have a horizontal list of items. The individual items should grow and shrink depending on the available screen width. However, they should always be at least
80.dp
wide. Additionally, they should not grow any further if the whole list fits on the screen without scrolling. I tried a
Row
and a combination of
widthIn(min = 80.dp)
and
weight(1f)
. However, the min width is ignored and items shrink below it. Is this layout possible with the available building blocks or should I go for a custom layout?