{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

VerticalAlignmentLine

public final class VerticalAlignmentLine extends AlignmentLine

java.lang.Object
   ↳ androidx.compose.ui.layout.AlignmentLine
     ↳ androidx.compose.ui.layout.VerticalAlignmentLine

A vertical AlignmentLine. Defines a vertical offset line that can be used by parent layouts usually to align or position their children horizontally. The positions of the alignment lines will be automatically inherited by parent layouts from their content, and the merger will be used to merge multiple line positions when more than one child provides a specific AlignmentLine. See AlignmentLine for more details.

Summary

Public constructors

Public constructors

VerticalAlignmentLine

public VerticalAlignmentLine(
    @NonNull Function2<@NonNull Integer, @NonNull Integer, @NonNull Integer> merger
)
Parameters
@NonNull Function2<@NonNull Integer, @NonNull Integer, @NonNull Integer> merger

How to merge two alignment line values defined by different children