Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
interface Bounds

The rectangular bounds for a View that is being constrained.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Defines a linear relationship that captures the relationship between a set of variables and the degree to which that relationship should be enforced.

Link copied to clipboard

Block within which constraints can be defined and captured.

Link copied to clipboard

Any error that can be raised when applying constrains.

Link copied to clipboard
abstract class ConstraintLayout : Layout

A Layout that positions Views using a set of constraints. These layouts are created using the constrain functions and follow the form:

Link copied to clipboard

Thrown when a duplicate Constraint is added.

Link copied to clipboard
class Edges

External boundaries of a constrained item.

Link copied to clipboard
open class Expression

Represents a relationship between a set of Terms and a constant value. This allows the modeling of linear relationships of the form: 10x -5y + 11.

Link copied to clipboard
Link copied to clipboard
interface ParentBounds

Bounds the refer to the external, bounding rectangle for the parent of a View that is being constrained.

Link copied to clipboard
class Position

2-Dimensional value within a Bounds set.

Link copied to clipboard
abstract class Property

Simple value within a Bounds set.

Link copied to clipboard

Defines the weight or priority applied to a given Constraint. This determines the likelihood of the Constraint being honored.

Link copied to clipboard
abstract class Term

A coefficient-value pair that is used to build Expressions

Link copied to clipboard
class UnsatisfiableConstraintException(val constraint: Constraint, val existingConstraints: Collection<Constraint>) : ConstraintException

Indicates a Constraint is unsatisfiable.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard

Creates a ConstraintLayout that constrains a single View.

Creates a ConstraintLayout that constrains 2 Views.

Creates a ConstraintLayout that constrains 3 Views.

fun constrain(a: View, b: View, vararg others: View, constraints: ConstraintDslContext.(List<Bounds>) -> Unit): ConstraintLayout

Creates a ConstraintLayout that constrains several Views.

Creates a ConstraintLayout that constrains 4 Views.

Creates a ConstraintLayout that constrains 5 Views.

Link copied to clipboard
fun fill(insets: Insets, strength: Strength = Required): ConstraintDslContext.(Bounds) -> Unit

Inherited functions

Link copied to clipboard
inline operator fun Strength.minus(value: Int): Strength
Link copied to clipboard
operator fun Strength.plus(value: Int): Strength
Link copied to clipboard
fun ConstraintDslContext.withSizeInsets(width: Double? = null, height: Double? = null, block: ConstraintDslContext.() -> Unit)