androidx.compose.ui.text
Interfaces
Paragraph |
A paragraph of text that is laid out. |
ParagraphIntrinsics |
Calculates and presents the intrinsic width and height of text. |
Classes
AnnotatedString |
The basic data structure of text with multiple styles. |
AtomicReference | |
MultiParagraph |
Lays out and renders multiple paragraphs at once. |
MultiParagraphIntrinsics |
Calculates and provides the intrinsic width and height of text that contains ParagraphStyle. |
ParagraphStyle |
Paragraph styling configuration for a paragraph. |
Placeholder |
A placeholder is a rectangle box inserted into text, which tells the text processor to leave an empty space. |
SpanStyle |
Styling configuration for a text span. |
TextLayoutInput |
The data class which holds the set of parameters of the text layout computation. |
TextLayoutResult |
The data class which holds text layout result. |
TextRange |
An immutable text range class, represents a text range from start (inclusive) to end (exclusive). |
TextStyle |
Styling configuration for a |
TtsAnnotation |
An annotation that contains the metadata intended for text-to-speech engine. |
VerbatimTtsAnnotation |
The text associated with this annotation is a series of characters that have to be read verbatim. |
Annotations
InternalTextApi |
Enums
PlaceholderVerticalAlign |
The settings used to specify how a placeholder is vertically aligned within a text line. |
Top-level functions summary
AnnotatedString |
AnnotatedString(text: String, spanStyle: SpanStyle, paragraphStyle: ParagraphStyle? = null) Create an AnnotatedString with a spanStyle that will apply to the whole text. |
AnnotatedString |
AnnotatedString(text: String, paragraphStyle: ParagraphStyle) Create an AnnotatedString with a paragraphStyle that will apply to the whole text. |
Paragraph |
Paragraph(text: String, style: TextStyle, spanStyles: List<AnnotatedString.Range<SpanStyle>> = listOf(), placeholders: List<AnnotatedString.Range<Placeholder>> = listOf(), maxLines: Int = DefaultMaxLines, ellipsis: Boolean = false, width: Float, density: Density, resourceLoader: Font.ResourceLoader) Lays out a given text with the given constraints. |
Paragraph |
Paragraph(paragraphIntrinsics: ParagraphIntrinsics, maxLines: Int = DefaultMaxLines, ellipsis: Boolean = false, width: Float) Lays out the text in ParagraphIntrinsics with the given constraints. |
ParagraphIntrinsics |
ParagraphIntrinsics(text: String, style: TextStyle, spanStyles: List<AnnotatedString.Range<SpanStyle>> = listOf(), placeholders: List<AnnotatedString.Range<Placeholder |