HChain
public class HChain extends Chain
| java.lang.Object | |||
| ↳ | androidx.constraintlayout.core.dsl.Helper | ||
| ↳ | androidx.constraintlayout.core.dsl.Chain | ||
| ↳ | androidx.constraintlayout.core.dsl.HChain |
Summary
Nested types |
|---|
public inner class HChain.HAnchor extends Chain.Anchor |
Public methods |
|
|---|---|
HChain.HAnchor |
getEnd()Get the end anchor |
HChain.HAnchor |
getLeft()Get the left anchor |
HChain.HAnchor |
getRight()Get the right anchor |
HChain.HAnchor |
getStart()Get the start anchor |
void |
linkToEnd(Constraint.HAnchor anchor)Connect anchor to End |
void |
linkToEnd(Constraint.HAnchor anchor, int margin)Connect anchor to End |
void |
linkToEnd(Constraint.HAnchor anchor, int margin, int goneMargin)Connect anchor to End |
void |
linkToLeft(Constraint.HAnchor anchor)Connect anchor to Left |
void |
linkToLeft(Constraint.HAnchor anchor, int margin)Connect anchor to Left |
void |
linkToLeft(Constraint.HAnchor anchor, int margin, int goneMargin)Connect anchor to Left |
void |
linkToRight(Constraint.HAnchor anchor)Connect anchor to Right |
void |
linkToRight(Constraint.HAnchor anchor, int margin)Connect anchor to Right |
void |
linkToRight(Constraint.HAnchor anchor, int margin, int goneMargin)Connect anchor to Right |
void |
linkToStart(Constraint.HAnchor anchor)Connect anchor to Start |
void |
linkToStart(Constraint.HAnchor anchor, int margin)Connect anchor to Start |
void |
linkToStart(Constraint.HAnchor anchor, int margin, int goneMargin)Connect anchor to Start |
Inherited Constants |
||||
|---|---|---|---|---|
|
||||
|
Inherited fields |
|---|
Inherited methods |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||
Public constructors
Public methods
getEnd
public HChain.HAnchor getEnd()
Get the end anchor
| Returns | |
|---|---|
HChain.HAnchor |
the end anchor |
getLeft
public HChain.HAnchor getLeft()
Get the left anchor
| Returns | |
|---|---|
HChain.HAnchor |
the left anchor |
getRight
public HChain.HAnchor getRight()
Get the right anchor
| Returns | |
|---|---|
HChain.HAnchor |
the right anchor |
getStart
public HChain.HAnchor getStart()
Get the start anchor
| Returns | |
|---|---|
HChain.HAnchor |
the start anchor |
linkToEnd
public void linkToEnd(Constraint.HAnchor anchor)
Connect anchor to End
| Parameters | |
|---|---|
Constraint.HAnchor anchor |
anchor to be connected |
linkToEnd
public void linkToEnd(Constraint.HAnchor anchor, int margin)
Connect anchor to End
| Parameters | |
|---|---|
Constraint.HAnchor anchor |
anchor to be connected |
int margin |
value of the margin |
linkToEnd
public void linkToEnd(Constraint.HAnchor anchor, int margin, int goneMargin)
Connect anchor to End
| Parameters | |
|---|---|
Constraint.HAnchor anchor |
anchor to be connected |
int margin |
value of the margin |
int goneMargin |
value of the goneMargin |
linkToLeft
public void linkToLeft(Constraint.HAnchor anchor)
Connect anchor to Left
| Parameters | |
|---|---|
Constraint.HAnchor anchor |
anchor to be connected |
linkToLeft
public void linkToLeft(Constraint.HAnchor anchor, int margin)
Connect anchor to Left
| Parameters | |
|---|---|
Constraint.HAnchor anchor |
anchor to be connected |
int margin |
value of the margin |
linkToLeft
public void linkToLeft(Constraint.HAnchor anchor, int margin, int goneMargin)
Connect anchor to Left
| Parameters | |
|---|---|
Constraint.HAnchor anchor |
anchor to be connected |
int margin |
value of the margin |
int goneMargin |
value of the goneMargin |
linkToRight
public void linkToRight(Constraint.HAnchor anchor)
Connect anchor to Right
| Parameters | |
|---|---|
Constraint.HAnchor anchor |
anchor to be connected |
linkToRight
public void linkToRight(Constraint.HAnchor anchor, int margin)
Connect anchor to Right
| Parameters | |
|---|---|
Constraint.HAnchor anchor |
anchor to be connected |
int margin |
value of the margin |
linkToRight
public void linkToRight(Constraint.HAnchor anchor, int margin, int goneMargin)
Connect anchor to Right
| Parameters | |
|---|---|
Constraint.HAnchor anchor |
anchor to be connected |
int margin |
value of the margin |
int goneMargin |
value of the goneMargin |
linkToStart
public void linkToStart(Constraint.HAnchor anchor)
Connect anchor to Start
| Parameters | |
|---|---|
Constraint.HAnchor anchor |
anchor to be connected |
linkToStart
public void linkToStart(Constraint.HAnchor anchor, int margin)
Connect anchor to Start
| Parameters | |
|---|---|
Constraint.HAnchor anchor |
anchor to be connected |
int margin |
value of the margin |
linkToStart
public void linkToStart(Constraint.HAnchor anchor, int margin, int goneMargin)
Connect anchor to Start
| Parameters | |
|---|---|
Constraint.HAnchor anchor |
anchor to be connected |
int margin |
value of the margin |
int goneMargin |
value of the goneMargin |