constrainAs(title_textRef, {
end.linkTo(parent.end, ~dimensionResource~(id = R.dimen.dp_16))
}
How can I reference dimensionResource inside of non-composable code block?
c
Csaba Szugyiczki
09/02/2021, 1:04 PM
Im affraid the only way to do it, is to save the value into a
val
before the constrainAs call, and use that value istead of calling