I'm using constraintLayout programmatically, and spend few hours to detect the bug about use barrier.
Call the inline function lparams on barrier is a wrong call, should prevent user to call it accidentally.
constraintLayout {
barrier {
id = R.id.id5
type = Barrier.BOTTOM
referencedIds = intArrayOf(R.id.id2, R.id.id4)
} // .lparams(wrapContent, wrapContent) // must avoid to use lparams here
I'm using
constraintLayout
programmatically, and spend few hours to detect the bug about usebarrier
.Call the inline function
lparams
onbarrier
is a wrong call, should prevent user to call it accidentally.