Slide 115
Slide 115 text
ConstraintLayout 2.0 preview
center(int firstID, int firstSide, int firstMargin, int secondId, int secondSide, int secondMargin, f
centerHorizontally(int leftId, int leftSide, int leftMargin, int rightId, int rightSide, int rightMar
centerHorizontallyRtl(int startId, int startSide, int startMargin, int endId, int endSide, int endMar
centerVertically(int topId, int topSide, int topMargin, int bottomId, int bottomSide, int bottomMargi
centerHorizontally(int toView)
centerHorizontallyRtl(int toView)
centerVertically(int toView)
removeConstraints(int anchor)
margin(int anchor, int value)
goneMargin(int anchor, int value)
horizontalBias(float bias)
verticalBias(float bias)
dimensionRatio(String ratio)
visibility(int visibility)
alpha(float alpha)
elevation(float elevation)
rotation(float rotation)
rotationX(float rotationX)
rotationY(float rotationY)
scaleX(float scaleX)
scaleY(float scaleY)
CONSTRAINTS API…
translationX(float translationX)
translationY(float translationY)
translation(float translationX, float translationY)
translationZ(float translationZ)
constrainHeight(int height)
constrainWidth(int width)
constrainMaxHeight(int height)
constrainMaxWidth(int width)
constrainMinHeight(int height)
constrainMinWidth(int width)
constrainDefaultHeight(int height)
constrainDefaultWidth(int width)
horizontalWeight(float weight)
verticalWeight(float weight)
horizontalChainStyle(int chainStyle)
verticalChainStyle(int chainStyle)
addToHorizontalChain(int leftId, int rightId)
addToHorizontalChainRTL(int leftId, int rightId)
addToVerticalChain(int topId, int bottomId)
removeFromVerticalChain()
removeFromHorizontalChain()
connect(int startSide, int endID, int endSide, int margin