Class VChain
- java.lang.Object
-
- androidx.constraintlayout.core.dsl.Helper
-
- androidx.constraintlayout.core.dsl.Chain
-
- androidx.constraintlayout.core.dsl.VChain
-
public class VChain extends Chain
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classVChain.VAnchor-
Nested classes/interfaces inherited from class androidx.constraintlayout.core.dsl.Chain
Chain.Anchor, Chain.Style
-
Nested classes/interfaces inherited from class androidx.constraintlayout.core.dsl.Helper
Helper.HelperType, Helper.Type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VChain.VAnchorgetBaseline()Get the baseline anchorVChain.VAnchorgetBottom()Get the bottom anchorVChain.VAnchorgetTop()Get the top anchorvoidlinkToBaseline(Constraint.VAnchor anchor)Connect anchor to BaselinevoidlinkToBaseline(Constraint.VAnchor anchor, int margin)Connect anchor to BaselinevoidlinkToBaseline(Constraint.VAnchor anchor, int margin, int goneMargin)Connect anchor to BaselinevoidlinkToBottom(Constraint.VAnchor anchor)Connect anchor to BottomvoidlinkToBottom(Constraint.VAnchor anchor, int margin)Connect anchor to BottomvoidlinkToBottom(Constraint.VAnchor anchor, int margin, int goneMargin)Connect anchor to BottomvoidlinkToTop(Constraint.VAnchor anchor)Connect anchor to TopvoidlinkToTop(Constraint.VAnchor anchor, int margin)Connect anchor to TopvoidlinkToTop(Constraint.VAnchor anchor, int margin, int goneMargin)Connect anchor to Top-
Methods inherited from class androidx.constraintlayout.core.dsl.Chain
addReference, addReference, getStyle, referencesToString, setStyle
-
-
-
-
Method Detail
-
getTop
public VChain.VAnchor getTop()
Get the top anchor- Returns:
- the top anchor
-
linkToTop
public void linkToTop(Constraint.VAnchor anchor)
Connect anchor to Top- Parameters:
anchor- anchor to be connected
-
linkToTop
public void linkToTop(Constraint.VAnchor anchor, int margin)
Connect anchor to Top- Parameters:
anchor- anchor to be connectedmargin- value of the margin
-
linkToTop
public void linkToTop(Constraint.VAnchor anchor, int margin, int goneMargin)
Connect anchor to Top- Parameters:
anchor- anchor to be connectedmargin- value of the margingoneMargin- value of the goneMargin
-
getBottom
public VChain.VAnchor getBottom()
Get the bottom anchor- Returns:
- the bottom anchor
-
linkToBottom
public void linkToBottom(Constraint.VAnchor anchor)
Connect anchor to Bottom- Parameters:
anchor- anchor to be connected
-
linkToBottom
public void linkToBottom(Constraint.VAnchor anchor, int margin)
Connect anchor to Bottom- Parameters:
anchor- anchor to be connectedmargin- value of the margin
-
linkToBottom
public void linkToBottom(Constraint.VAnchor anchor, int margin, int goneMargin)
Connect anchor to Bottom- Parameters:
anchor- anchor to be connectedmargin- value of the margingoneMargin- value of the goneMargin
-
getBaseline
public VChain.VAnchor getBaseline()
Get the baseline anchor- Returns:
- the baseline anchor
-
linkToBaseline
public void linkToBaseline(Constraint.VAnchor anchor)
Connect anchor to Baseline- Parameters:
anchor- anchor to be connected
-
linkToBaseline
public void linkToBaseline(Constraint.VAnchor anchor, int margin)
Connect anchor to Baseline- Parameters:
anchor- anchor to be connectedmargin- value of the margin
-
linkToBaseline
public void linkToBaseline(Constraint.VAnchor anchor, int margin, int goneMargin)
Connect anchor to Baseline- Parameters:
anchor- anchor to be connectedmargin- value of the margingoneMargin- value of the goneMargin
-
-