The Developer Preview for Android 11 is now available; test it out and share your feedback.

TextIndent

@Immutable data class TextIndent
kotlin.Any
   ↳ androidx.ui.text.style.TextIndent

Specify the indentation of a paragraph.

Summary

Public constructors

<init>(firstLine: TextUnit = 0.sp, restLine: TextUnit = 0.sp)

Specify the indentation of a paragraph.

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Properties

TextUnit

the amount of indentation applied to the first line.

TextUnit

the amount of indentation applied to every line except the first line.

Companion properties

TextIndent

Constant fot no text indent.

Public constructors

<init>

TextIndent(
    firstLine: TextUnit = 0.sp,
    restLine: TextUnit = 0.sp)

Specify the indentation of a paragraph.

Parameters
firstLine: TextUnit = 0.sp the amount of indentation applied to the first line.
restLine: TextUnit = 0.sp the amount of indentation applied to every line except the first line.

Properties

firstLine

val firstLine: TextUnit

the amount of indentation applied to the first line.

restLine

val restLine: TextUnit

the amount of indentation applied to every line except the first line.

Companion properties

None

val None: TextIndent

Constant fot no text indent.