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