This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ConstraintSet c = new ConstraintSet(); | |
c.clone(constraintLayout); | |
c.createHorizontalChain(ConstraintSet.PARENT_ID, ConstraintSet.LEFT, ConstraintSet.PARENT_ID, ConstraintSet.RIGHT, new int[]{R.id.button1, R.id.button2, R.id.button3}, null, ConstraintSet.CHAIN_SPREAD); | |
c.applyTo(constraintLayout); |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 7.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ConstraintSet method, Explanation | |
"createHorizontalChain(int leftId, int leftSide, int rightId, int rightSide, int[] chainIds, float[] weights, int style)", "Creates a horizontal chain attached to the leftSide of leftId, and the rightSide of rightId. " | |
"createHorizontalChainRtl(int leftId, int leftSide, int rightId, int rightSide, int[] chainIds, float[] weights, int style)", "Creates a horizontal chain attached to the leftSide of leftId, and the rightSide of rightId with RTL support." | |
"createVerticalChain(int topId, int topSide, int bottomId, int bottomSide, int[] chainIds, float[] weights, int style)", "Creates a vertical chain attached to the topSide of topId, and the bottomSide of bottomId. " | |
"setHorizontalChainStyle(int viewId, int chainStyle)", "Applies a chain style on a horizontal chain's head view." | |
"setVerticalChainStyle(int viewId, int chainStyle)", "Applies a chain style on a vertical chain's head view." | |
"addToHorizontalChain(int viewId, int leftId, int rightId)", "Adds a view to a horizontal ch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ConstraintSet method | Explanation | |
---|---|---|
setVisibility(int viewId, int visibility) |