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

LineHeightStyle.Alignment

value public final class LineHeightStyle.Alignment


Defines how to align the line in the space provided by the line height.

Summary

Nested types

Public constructors

Alignment(float topRatio)

Public methods

@NonNull String

Public constructors

Alignment

public Alignment(float topRatio)
Parameters
float topRatio

the ratio of ascent to ascent+descent in percentage. Valid values are between 0f (inclusive) and 1f (inclusive).

Public methods

toString

public @NonNull String toString()