public class HChain extends Chain


Summary

Nested types

public inner class HChain.HAnchor extends Chain.Anchor

Public constructors

HChain(String name)
HChain(String name, String config)

Public methods

HChain.HAnchor

Get the end anchor

HChain.HAnchor

Get the left anchor

HChain.HAnchor

Get the right anchor

HChain.HAnchor

Get the start anchor

void

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

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

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

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 methods

From androidx.constraintlayout.core.dsl.Chain
Chain

Add a new reference

Chain

Add a new reference

Chain.Style
String

convert references to a String representation

void
From androidx.constraintlayout.core.dsl.Helper

Public constructors

HChain

Added in 1.1.0
public HChain(String name)

HChain

Added in 1.1.0
public HChain(String name, String config)

Public methods

getEnd

Added in 1.1.0
public HChain.HAnchor getEnd()

Get the end anchor

Returns
HChain.HAnchor

the end anchor

getLeft

Added in 1.1.0
public HChain.HAnchor getLeft()

Get the left anchor

Returns
HChain.HAnchor

the left anchor

getRight

Added in 1.1.0
public HChain.HAnchor getRight()

Get the right anchor

Returns
HChain.HAnchor

the right anchor

getStart

Added in 1.1.0
public HChain.HAnchor getStart()

Get the start anchor

Returns
HChain.HAnchor

the start anchor

linkToEnd

Added in 1.1.0
public void linkToEnd(Constraint.HAnchor anchor)

Connect anchor to End

Parameters
Constraint.HAnchor anchor

anchor to be connected

linkToEnd

Added in 1.1.0
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

Added in 1.1.0
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

Added in 1.1.0
public void linkToLeft(Constraint.HAnchor anchor)

Connect anchor to Left

Parameters
Constraint.HAnchor anchor

anchor to be connected

linkToLeft

Added in 1.1.0
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

Added in 1.1.0
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

Added in 1.1.0
public void linkToRight(Constraint.HAnchor anchor)

Connect anchor to Right

Parameters
Constraint.HAnchor anchor

anchor to be connected

linkToRight

Added in 1.1.0
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

Added in 1.1.0
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

Added in 1.1.0
public void linkToStart(Constraint.HAnchor anchor)

Connect anchor to Start

Parameters
Constraint.HAnchor anchor

anchor to be connected

linkToStart

Added in 1.1.0
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

Added in 1.1.0
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