dagomni
04/06/2020, 6:45 AMstate.width(if (constraints.hasBoundedWidth) {
Dimension.Fixed(constraints.maxWidth.value)
} else {
Dimension.Wrap()
})
I'm guessing it would have to call Dimension.spread() in order for it to work in my case or am I wrong?maciejciemiega
04/06/2020, 7:00 AMbottomNavigation constrainHorizontallyTo parent
inside a ConstraintSet
dagomni
04/06/2020, 7:03 AMval constraintSet = ConstraintSet {
val bottomNavTag = tag(bottomNav)
val viewsContainerTag = tag(viewsContainer)
<http://viewsContainerTag.top|viewsContainerTag.top> constrainTo <http://parent.top|parent.top>
viewsContainerTag.bottom constrainTo <http://bottomNavTag.top|bottomNavTag.top>
viewsContainerTag constrainHorizontallyTo parent
bottomNavTag.bottom constrainTo parent.bottom
bottomNavTag constrainHorizontallyTo parent
}
maciejciemiega
04/06/2020, 7:05 AMmaciejciemiega
04/06/2020, 7:49 AMdagomni
04/06/2020, 8:29 AMMihai Popa
04/06/2020, 11:02 AM