Barrier
public class Barrier extends Helper
| java.lang.Object | ||
| ↳ | androidx.constraintlayout.core.dsl.Helper | |
| ↳ | androidx.constraintlayout.core.dsl.Barrier |
Summary
Public methods |
|
|---|---|
Barrier |
addReference(Ref ref)Add a new reference |
Barrier |
addReference(String ref)Add a new reference |
Constraint.Side |
Get the direction of the Barrier |
int |
Get the margin of the Barrier |
String |
Convert references into a String representation |
void |
setDirection(Constraint.Side direction)Set the direction of the Barrier |
void |
setMargin(int margin)Set the margin of the Barrier |
Inherited Constants |
||||
|---|---|---|---|---|
|
Inherited fields |
|---|
Inherited methods |
|---|
Public constructors
Public methods
addReference
Added in 1.1.1
public Barrier addReference(Ref ref)
Add a new reference
| Parameters | |
|---|---|
Ref ref |
reference |
| Returns | |
|---|---|
Barrier |
Barrier |
addReference
Added in 1.1.1
public Barrier addReference(String ref)
Add a new reference
| Parameters | |
|---|---|
String ref |
reference in a String representation |
| Returns | |
|---|---|
Barrier |
Chain |
getDirection
Added in 1.1.1
public Constraint.Side getDirection()
Get the direction of the Barrier
| Returns | |
|---|---|
Constraint.Side |
direction |
referencesToString
Added in 1.1.1
public String referencesToString()
Convert references into a String representation
| Returns | |
|---|---|
String |
a String representation of references |
setDirection
Added in 1.1.1
public void setDirection(Constraint.Side direction)
Set the direction of the Barrier
| Parameters | |
|---|---|
Constraint.Side direction |