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

PlaceholderVerticalAlign.Companion

public static class PlaceholderVerticalAlign.Companion


Summary

Public methods

static final @NonNull PlaceholderVerticalAlign

Align the bottom of the placeholder with the baseline.

static final @NonNull PlaceholderVerticalAlign

Align the bottom of the placeholder with the bottom of the entire line.

static final @NonNull PlaceholderVerticalAlign

Align the center of the placeholder with the center of the entire line.

static final @NonNull PlaceholderVerticalAlign

Align the bottom of the placeholder with the bottom of the proceeding text.

static final @NonNull PlaceholderVerticalAlign

Align the center of the placeholder with the center of the proceeding text.

static final @NonNull PlaceholderVerticalAlign

Align the top of the placeholder with the top of the proceeding text.

static final @NonNull PlaceholderVerticalAlign

Align the top of the placeholder with the top of the entire line.

Public methods

getAboveBaseline

public static final @NonNull PlaceholderVerticalAlign getAboveBaseline()

Align the bottom of the placeholder with the baseline.

getBottom

public static final @NonNull PlaceholderVerticalAlign getBottom()

Align the bottom of the placeholder with the bottom of the entire line.

getCenter

public static final @NonNull PlaceholderVerticalAlign getCenter()

Align the center of the placeholder with the center of the entire line.

getTextBottom

public static final @NonNull PlaceholderVerticalAlign getTextBottom()

Align the bottom of the placeholder with the bottom of the proceeding text. It is different from the TextBottom when there are texts with different font size, font or other styles in the same line. This option will use the proceeding text's bottom instead of the whole line's bottom.

getTextCenter

public static final @NonNull PlaceholderVerticalAlign getTextCenter()

Align the center of the placeholder with the center of the proceeding text. It is different from the Center when there are texts with different font size, font or other styles in the same line. This option will use the proceeding text's center instead of the whole line's center.

getTextTop

public static final @NonNull PlaceholderVerticalAlign getTextTop()

Align the top of the placeholder with the top of the proceeding text. It is different from the Top when there are texts with different font size, font or other styles in the same line. This option will use the proceeding text's top instead of the whole line's top.

getTop

public static final @NonNull PlaceholderVerticalAlign getTop()

Align the top of the placeholder with the top of the entire line.