Class

TextDecoration

Defines a horizontal line to be drawn on the text.

Source set: Android
public class TextDecoration internal constructor(private val mask: Int)

Defines a horizontal line to be drawn on the text.

Functions

plus

Source set: Android
public operator fun plus(decoration: TextDecoration): TextDecoration

Creates a decoration that includes both of the TextDecorations.

contains

Source set: Android
public operator fun contains(other: TextDecoration): Boolean

Check whether this TextDecoration contains the given decoration.

toString

Source set: Android
override fun toString(): String

Members

Companion

Source set: Android
public companion object

Properties

None

Source set: Android
public val None: TextDecoration = TextDecoration(0x0)

Underline

Source set: Android
public val Underline: TextDecoration = TextDecoration(0x1)

Draws a horizontal line below the text.

LineThrough

Source set: Android
public val LineThrough: TextDecoration = TextDecoration(0x2)

Draws a horizontal line over the text.

Note: This will have no effect if used on Wear Tiles.

Functions

combine

Source set: Android
public fun combine(decorations: List<TextDecoration>): TextDecoration

Creates a decoration that includes all the given decorations.

Parameters

decorations The decorations to be added
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: