Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Should avoid call lparams no barrier inside constraintLayout. #733

Open
ghost opened this issue Mar 8, 2019 · 0 comments
Open

Should avoid call lparams no barrier inside constraintLayout. #733

ghost opened this issue Mar 8, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 8, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants