PlaceholderVerticalAlign
enum class PlaceholderVerticalAlign
kotlin.Any | ||
↳ | kotlin.Enum<androidx.compose.ui.text.PlaceholderVerticalAlign> | |
↳ | androidx.compose.ui.text.PlaceholderVerticalAlign |
The settings used to specify how a placeholder is vertically aligned within a text line.
Summary
Enum values | |
---|---|
Align the bottom of the placeholder with the baseline. |
|
Align the bottom of the placeholder with the bottom of the entire line. |
|
Align the center of the placeholder with the center of the entire line. |
|
Align the bottom of the placeholder with the bottom of the proceeding text. |
|
Align the center of the placeholder with the center of the proceeding text. |
|
Align the top of the placeholder with the top of the proceeding text. |
|
Align the top of the placeholder with the top of the entire line. |
Inherited extension functions | ||
---|---|---|
From androidx.core.util
|
Enum values
AboveBaseline
enum val AboveBaseline : PlaceholderVerticalAlign
Align the bottom of the placeholder with the baseline.
Bottom
enum val Bottom : PlaceholderVerticalAlign
Align the bottom of the placeholder with the bottom of the entire line.
Center
enum val Center : PlaceholderVerticalAlign
Align the center of the placeholder with the center of the entire line.
TextBottom
enum val TextBottom : PlaceholderVerticalAlign
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.
TextCenter
enum val TextCenter : PlaceholderVerticalAlign
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.
TextTop
enum val TextTop : PlaceholderVerticalAlign
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.
Top
enum val Top : PlaceholderVerticalAlign
Align the top of the placeholder with the top of the entire line.