public class VChain extends Chain


Summary

Nested types

public class VChain.VAnchor extends Chain.Anchor

Public constructors

VChain(String name)
VChain(String name, String config)

Public methods

VChain.VAnchor

Get the baseline anchor

VChain.VAnchor

Get the bottom anchor

VChain.VAnchor

Get the top anchor

void

Connect anchor to Baseline

void
linkToBaseline(Constraint.VAnchor anchor, int margin)

Connect anchor to Baseline

void
linkToBaseline(Constraint.VAnchor anchor, int margin, int goneMargin)

Connect anchor to Baseline

void

Connect anchor to Bottom

void
linkToBottom(Constraint.VAnchor anchor, int margin)

Connect anchor to Bottom

void
linkToBottom(Constraint.VAnchor anchor, int margin, int goneMargin)

Connect anchor to Bottom

void

Connect anchor to Top

void
linkToTop(Constraint.VAnchor anchor, int margin)

Connect anchor to Top

void
linkToTop(Constraint.VAnchor anchor, int margin, int goneMargin)

Connect anchor to Top

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

VChain

Added in 1.1.0-alpha13
public VChain(String name)

VChain

Added in 1.1.0-alpha13
public VChain(String name, String config)

Public methods

getBaseline

Added in 1.1.0-alpha13
public VChain.VAnchor getBaseline()

Get the baseline anchor

Returns
VChain.VAnchor

the baseline anchor

getBottom

Added in 1.1.0-alpha13
public VChain.VAnchor getBottom()

Get the bottom anchor

Returns
VChain.VAnchor

the bottom anchor

getTop

Added in 1.1.0-alpha13
public VChain.VAnchor getTop()

Get the top anchor

Returns
VChain.VAnchor

the top anchor

linkToBaseline

Added in 1.1.0-alpha13
public void linkToBaseline(Constraint.VAnchor anchor)

Connect anchor to Baseline

Parameters
Constraint.VAnchor anchor

anchor to be connected

linkToBaseline

Added in 1.1.0-alpha13
public void linkToBaseline(Constraint.VAnchor anchor, int margin)

Connect anchor to Baseline

Parameters
Constraint.VAnchor anchor

anchor to be connected

int margin

value of the margin

linkToBaseline

Added in 1.1.0-alpha13
public void linkToBaseline(Constraint.VAnchor anchor, int margin, int goneMargin)

Connect anchor to Baseline

Parameters
Constraint.VAnchor anchor

anchor to be connected

int margin

value of the margin

int goneMargin

value of the goneMargin

linkToBottom

Added in 1.1.0-alpha13
public void linkToBottom(Constraint.VAnchor anchor)

Connect anchor to Bottom

Parameters
Constraint.VAnchor anchor

anchor to be connected

linkToBottom

Added in 1.1.0-alpha13
public void linkToBottom(Constraint.VAnchor anchor, int margin)

Connect anchor to Bottom

Parameters
Constraint.VAnchor anchor

anchor to be connected

int margin

value of the margin

linkToBottom

Added in 1.1.0-alpha13
public void linkToBottom(Constraint.VAnchor anchor, int margin, int goneMargin)

Connect anchor to Bottom

Parameters
Constraint.VAnchor anchor

anchor to be connected

int margin

value of the margin

int goneMargin

value of the goneMargin

linkToTop

Added in 1.1.0-alpha13
public void linkToTop(Constraint.VAnchor anchor)

Connect anchor to Top

Parameters
Constraint.VAnchor anchor

anchor to be connected

linkToTop

Added in 1.1.0-alpha13
public void linkToTop(Constraint.VAnchor anchor, int margin)

Connect anchor to Top

Parameters
Constraint.VAnchor anchor

anchor to be connected

int margin

value of the margin

linkToTop

Added in 1.1.0-alpha13
public void linkToTop(Constraint.VAnchor anchor, int margin, int goneMargin)

Connect anchor to Top

Parameters
Constraint.VAnchor anchor

anchor to be connected

int margin

value of the margin

int goneMargin

value of the goneMargin