Guideline
public abstract class Guideline extends Helper
| java.lang.Object | ||
| ↳ | androidx.constraintlayout.core.dsl.Helper | |
| ↳ | androidx.constraintlayout.core.dsl.Guideline |
Summary
Public methods |
|
|---|---|
int |
getEnd()Get the end position |
float |
Get the position in percent |
int |
getStart()Get the start position |
void |
setEnd(int end)Set the end position |
void |
setPercent(float percent)Set the position in percent |
void |
setStart(int start)Set the start position |
Inherited Constants |
||||
|---|---|---|---|---|
|
Inherited fields |
|---|
Inherited methods |
|---|
Public methods
getPercent
Added in 1.1.2
public float getPercent()
Get the position in percent
| Returns | |
|---|---|
float |
position in percent |
setEnd
Added in 1.1.2
public void setEnd(int end)
Set the end position
| Parameters | |
|---|---|
int end |
the end position |
setPercent
Added in 1.1.2
public void setPercent(float percent)
Set the position in percent
| Parameters | |
|---|---|
float percent |
the position in percent |