Guideline
class Guideline : ConstraintWidget
| kotlin.Any | ||
| ↳ | androidx.constraintlayout.core.widgets.ConstraintWidget | |
| ↳ | androidx.constraintlayout.core.widgets.Guideline |
Guideline
Summary
Constants |
|
|---|---|
const Int |
HORIZONTAL = 0 |
const Int |
RELATIVE_BEGIN = 1 |
const Int |
RELATIVE_END = 2 |
const Int |
RELATIVE_PERCENT = 0 |
const Int |
RELATIVE_UNKNOWN = -1 |
const Int |
VERTICAL = 1 |
Public constructors |
|---|
Public functions |
|
|---|---|
Unit |
addToSolver(system: LinearSystem!, optimize: Boolean)Add this widget to the solver |
Boolean |
Returns true if this widget should be used in a barrier |
Unit |
copy( |
Unit |
|
ConstraintAnchor! |
|
ConstraintAnchor! |
getAnchor(anchorType: ConstraintAnchor.Type!)Given a type of anchor, returns the corresponding anchor. |
Int |
Get the Minimum Position |
Int |
get the orientation VERTICAL or HORIZONTAL |
Int |
|
Int |
|
Int |
|
Float |
|
String! |
getType()Specify the xml type for the container |
Boolean |
|
Boolean |
|
Boolean |
|
Unit |
setFinalValue(position: Int) |
Unit |
setGuideBegin(value: Int) |
Unit |
setGuideEnd(value: Int) |
Unit |
setGuidePercent(value: Float) |
Unit |
setGuidePercent(value: Int) |
Unit |
setMinimumPosition(minimum: Int)set the minimum position |
Unit |
setOrientation(orientation: Int) |
Unit |
updateFromSolver(system: LinearSystem!, optimize: Boolean)Update the widget from the values generated by the solver |
Inherited Constants |
||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Inherited functions |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Inherited properties |
|---|
Constants
Public functions
addToSolver
fun addToSolver(system: LinearSystem!, optimize: Boolean): Unit
Add this widget to the solver
| Parameters | |
|---|---|
system: LinearSystem! |
the solver we want to add the widget to |
optimize: Boolean |
true if |
allowedInBarrier
fun allowedInBarrier(): Boolean
Returns true if this widget should be used in a barrier
getAnchor
fun getAnchor(anchorType: ConstraintAnchor.Type!): ConstraintAnchor!
Given a type of anchor, returns the corresponding anchor.
| Parameters | |
|---|---|
anchorType: ConstraintAnchor.Type! |
type of the anchor (LEFT, TOP, RIGHT, BOTTOM, BASELINE, CENTER_X, CENTER_Y) |
| Returns | |
|---|---|
ConstraintAnchor! |
the matching anchor |
getMinimumPosition
fun getMinimumPosition(): Int
Get the Minimum Position
| Returns | |
|---|---|
Int |
the Minimum Position |
getOrientation
fun getOrientation(): Int
get the orientation VERTICAL or HORIZONTAL
| Returns | |
|---|---|
Int |
orientation |
setMinimumPosition
fun setMinimumPosition(minimum: Int): Unit
set the minimum position
| Parameters | |
|---|---|
minimum: Int |
updateFromSolver
fun updateFromSolver(system: LinearSystem!, optimize: Boolean): Unit
Update the widget from the values generated by the solver
| Parameters | |
|---|---|
system: LinearSystem! |
the solver we get the values from. |
optimize: Boolean |
true if |