lparams = (CollapsingToolbarLayout.LayoutParams) Anvil.currentView<View>().getLayoutParams()
DSL.layoutParams(lparams)
view()
and your child view you're doing this on
linearLayout {
button {
text("EAT SHIT!")
}.lparams {
width = dip(320)
height = dip(160)
gravity = 1
}
}