TextDecoration
Class
Android
public value class TextDecoration internal constructor(private val mask: Int)
Defines a horizontal line to be drawn on the text.
Functions
public operator fun plus(decoration: TextDecoration): TextDecoration
Creates a decoration that includes both of the TextDecorations.
public operator fun contains(other: TextDecoration): Boolean
Check whether this TextDecoration
contains the given decoration.
Companion Object
Properties
Android
public val None: TextDecoration
Android
public val Underline: TextDecoration
Draws a horizontal line below the text.
Android
public val LineThrough: TextDecoration
Draws a horizontal line over the text.
Note: This will have no effect if used on Wear Tiles.
Methods
Android
public fun combine(decorations: List<TextDecoration>): TextDecoration
Creates a decoration that includes all the given decorations.
Parameters
decorations | The decorations to be added |