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

TextIndent

public final class TextIndent


Specify the indentation of a paragraph.

Summary

Nested types

public static class TextIndent.Companion

Public constructors

TextIndent(@NonNull TextUnit firstLine, @NonNull TextUnit restLine)

Public methods

final @NonNull TextIndent
copy(@NonNull TextUnit firstLine, @NonNull TextUnit restLine)
boolean
equals(Object other)
final @NonNull TextUnit

the amount of indentation applied to the first line.

final @NonNull TextUnit

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

int
@NonNull String

Public constructors

TextIndent

public TextIndent(@NonNull TextUnit firstLine, @NonNull TextUnit restLine)
Parameters
@NonNull TextUnit firstLine

the amount of indentation applied to the first line.

@NonNull TextUnit restLine

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

Public methods

copy

public final @NonNull TextIndent copy(@NonNull TextUnit firstLine, @NonNull TextUnit restLine)

equals

public boolean equals(Object other)

getFirstLine

public final @NonNull TextUnit getFirstLine()

the amount of indentation applied to the first line.

getRestLine

public final @NonNull TextUnit getRestLine()

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

hashCode

public int hashCode()

toString

public @NonNull String toString()