Class HChain
- java.lang.Object
-
- androidx.constraintlayout.core.dsl.Helper
-
- androidx.constraintlayout.core.dsl.Chain
-
- androidx.constraintlayout.core.dsl.HChain
-
public class HChain extends Chain
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classHChain.HAnchor-
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 HChain.HAnchorgetEnd()Get the end anchorHChain.HAnchorgetLeft()Get the left anchorHChain.HAnchorgetRight()Get the right anchorHChain.HAnchorgetStart()Get the start anchorvoidlinkToEnd(Constraint.HAnchor anchor)Connect anchor to EndvoidlinkToEnd(Constraint.HAnchor anchor, int margin)Connect anchor to EndvoidlinkToEnd(Constraint.HAnchor anchor, int margin, int goneMargin)Connect anchor to EndvoidlinkToLeft(Constraint.HAnchor anchor)Connect anchor to LeftvoidlinkToLeft(Constraint.HAnchor anchor, int margin)Connect anchor to LeftvoidlinkToLeft(Constraint.HAnchor anchor, int margin, int goneMargin)Connect anchor to LeftvoidlinkToRight(Constraint.HAnchor anchor)Connect anchor to RightvoidlinkToRight(Constraint.HAnchor anchor, int margin)Connect anchor to RightvoidlinkToRight(Constraint.HAnchor anchor, int margin, int goneMargin)Connect anchor to RightvoidlinkToStart(Constraint.HAnchor anchor)Connect anchor to StartvoidlinkToStart(Constraint.HAnchor anchor, int margin)Connect anchor to StartvoidlinkToStart(Constraint.HAnchor anchor, int margin, int goneMargin)Connect anchor to Start-
Methods inherited from class androidx.constraintlayout.core.dsl.Chain
addReference, addReference, getStyle, referencesToString, setStyle
-
-
-
-
Method Detail
-
getLeft
public HChain.HAnchor getLeft()
Get the left anchor- Returns:
- the left anchor
-
linkToLeft
public void linkToLeft(Constraint.HAnchor anchor)
Connect anchor to Left- Parameters:
anchor- anchor to be connected
-
linkToLeft
public void linkToLeft(Constraint.HAnchor anchor, int margin)
Connect anchor to Left- Parameters:
anchor- anchor to be connectedmargin- value of the margin
-
linkToLeft
public void linkToLeft(Constraint.HAnchor anchor, int margin, int goneMargin)
Connect anchor to Left- Parameters:
anchor- anchor to be connectedmargin- value of the margingoneMargin- value of the goneMargin
-
getRight
public HChain.HAnchor getRight()
Get the right anchor- Returns:
- the right anchor
-
linkToRight
public void linkToRight(Constraint.HAnchor anchor)
Connect anchor to Right- Parameters:
anchor- anchor to be connected
-
linkToRight
public void linkToRight(Constraint.HAnchor anchor, int margin)
Connect anchor to Right- Parameters:
anchor- anchor to be connectedmargin- value of the margin
-
linkToRight
public void linkToRight(Constraint.HAnchor anchor, int margin, int goneMargin)
Connect anchor to Right- Parameters:
anchor- anchor to be connectedmargin- value of the margingoneMargin- value of the goneMargin
-
getStart
public HChain.HAnchor getStart()
Get the start anchor- Returns:
- the start anchor
-
linkToStart
public void linkToStart(Constraint.HAnchor anchor)
Connect anchor to Start- Parameters:
anchor- anchor to be connected
-
linkToStart
public void linkToStart(Constraint.HAnchor anchor, int margin)
Connect anchor to Start- Parameters:
anchor- anchor to be connectedmargin- value of the margin
-
linkToStart
public void linkToStart(Constraint.HAnchor anchor, int margin, int goneMargin)
Connect anchor to Start- Parameters:
anchor- anchor to be connectedmargin- value of the margingoneMargin- value of the goneMargin
-
getEnd
public HChain.HAnchor getEnd()
Get the end anchor- Returns:
- the end anchor
-
linkToEnd
public void linkToEnd(Constraint.HAnchor anchor)
Connect anchor to End- Parameters:
anchor- anchor to be connected
-
linkToEnd
public void linkToEnd(Constraint.HAnchor anchor, int margin)
Connect anchor to End- Parameters:
anchor- anchor to be connectedmargin- value of the margin
-
linkToEnd
public void linkToEnd(Constraint.HAnchor anchor, int margin, int goneMargin)
Connect anchor to End- Parameters:
anchor- anchor to be connectedmargin- value of the margingoneMargin- value of the goneMargin
-
-