ConstraintLayoutBaseScope
abstract class ConstraintLayoutBaseScope
kotlin.Any | |
↳ | androidx.compose.foundation.layout.ConstraintLayoutBaseScope |
Common scope for ConstraintLayoutScope and ConstraintSetScope, the content being shared between the inline DSL API and the ConstraintSet-based API.
Summary
Nested classes | |
---|---|
data |
Represents a horizontal anchor corresponding to the FirstBaseline of a layout that other
layouts can link to in their |
data |
Represents a horizontal anchor (e. |
data |
Represents a vertical anchor (e. |
Public constructors | |
---|---|
<init>() Common scope for ConstraintLayoutScope and ConstraintSetScope, the content being shared between the inline DSL API and the ConstraintSet-based API. |
Public methods | |
---|---|
Unit | |
ConstraintLayoutBaseScope.VerticalAnchor |
createAbsoluteLeftBarrier(vararg elements: ConstrainedLayoutReference, margin: Dp = 0.dp) Creates and returns a left barrier, containing the specified elements. |
ConstraintLayoutBaseScope.VerticalAnchor |
createAbsoluteRightBarrier(vararg elements: ConstrainedLayoutReference, margin: Dp = 0.dp) Creates and returns a right barrier, containing the specified elements. |
ConstraintLayoutBaseScope.HorizontalAnchor |
createBottomBarrier(vararg elements: ConstrainedLayoutReference, margin: Dp = 0.dp) Creates and returns a bottom barrier, containing the specified elements. |
ConstraintLayoutBaseScope.VerticalAnchor |
createEndBarrier(vararg elements: ConstrainedLayoutReference, margin: Dp = 0.dp) Creates and returns an end barrier, containing the specified elements. |
ConstraintLayoutBaseScope.VerticalAnchor |
createGuidelineFromAbsoluteLeft(offset: Dp) Creates a guideline at a specific offset from the left of the ConstraintLayout. |
ConstraintLayoutBaseScope.VerticalAnchor |
createGuidelineFromAbsoluteLeft(fraction: Float) Creates a guideline at a width fraction from the left of the ConstraintLayout. |
ConstraintLayoutBaseScope.VerticalAnchor |
createGuidelineFromAbsoluteRight(offset: Dp) Creates a guideline at a specific offset from the right of the ConstraintLayout. |
ConstraintLayoutBaseScope.VerticalAnchor |
createGuidelineFromAbsoluteRight(fraction: Float) Creates a guideline at a width fraction from the right of the ConstraintLayout. |
ConstraintLayoutBaseScope.HorizontalAnchor |
createGuidelineFromBottom(offset: Dp) Creates a guideline at a specific offset from the bottom of the ConstraintLayout. |
ConstraintLayoutBaseScope.HorizontalAnchor |
createGuidelineFromBottom(fraction: Float) Creates a guideline at a height percenide from the bottom of the ConstraintLayout. |
ConstraintLayoutBaseScope.VerticalAnchor |
createGuidelineFromEnd(offset: Dp) Creates a guideline at a specific offset from the end of the ConstraintLayout. |
ConstraintLayoutBaseScope.VerticalAnchor |
createGuidelineFromEnd(fraction: Float) Creates a guideline at a width fraction from the end of the ConstraintLayout. |
ConstraintLayoutBaseScope.VerticalAnchor |
createGuidelineFromStart(offset: Dp) Creates a guideline at a specific offset from the start of the ConstraintLayout. |
ConstraintLayoutBaseScope.VerticalAnchor |
createGuidelineFromStart(fraction: Float) Creates a guideline at a specific offset from the start of the ConstraintLayout. |
ConstraintLayoutBaseScope.HorizontalAnchor |
createGuidelineFromTop(offset: Dp) Creates a guideline at a specific offset from the top of the ConstraintLayout. |
ConstraintLayoutBaseScope.HorizontalAnchor |
createGuidelineFromTop(fraction: Float) Creates a guideline at a height percenide from the top of the ConstraintLayout. |
Unit |
createHorizontalChain(vararg elements: ConstrainedLayoutReference, chainStyle: ChainStyle = ChainStyle.Spread) Creates a horizontal chain including the referenced layouts. |
ConstraintLayoutBaseScope.VerticalAnchor |
createStartBarrier(vararg elements: ConstrainedLayoutReference, margin: Dp = 0.dp) Creates and returns a start barrier, containing the specified elements. |
ConstraintLayoutBaseScope.HorizontalAnchor |
createTopBarrier(vararg elements: ConstrainedLayoutReference, margin: Dp = 0.dp) Creates and returns a top barrier, containing the specified elements. |
Unit |
createVerticalChain(vararg elements: ConstrainedLayoutReference, chainStyle: ChainStyle = ChainStyle.Spread) Creates a vertical chain including the referenced layouts. |
Unit |
reset() |
Properties | |
---|---|
MutableList<(State) -> Unit> |
Public constructors
<init>
ConstraintLayoutBaseScope()
Common scope for ConstraintLayoutScope and ConstraintSetScope, the content being shared between the inline DSL API and the ConstraintSet-based API.
Public methods
createAbsoluteLeftBarrier
fun createAbsoluteLeftBarrier(
vararg elements: ConstrainedLayoutReference,
margin: Dp = 0.dp
): ConstraintLayoutBaseScope.VerticalAnchor
Creates and returns a left barrier, containing the specified elements.
createAbsoluteRightBarrier
fun createAbsoluteRightBarrier(
vararg elements: ConstrainedLayoutReference,
margin: Dp = 0.dp
): ConstraintLayoutBaseScope.VerticalAnchor
Creates and returns a right barrier, containing the specified elements.
createBottomBarrier
fun createBottomBarrier(
vararg elements: ConstrainedLayoutReference,
margin: Dp = 0.dp
): ConstraintLayoutBaseScope.HorizontalAnchor
Creates and returns a bottom barrier, containing the specified elements.
createEndBarrier
fun createEndBarrier(
vararg elements: ConstrainedLayoutReference,
margin: Dp = 0.dp
): ConstraintLayoutBaseScope.VerticalAnchor
Creates and returns an end barrier, containing the specified elements.