set
Add span to the range start…end of the text.
val s = "Hello, World!".toSpannable()
s[0, 5] = UnderlineSpan()
Content copied to clipboard
Note: The end value is exclusive.
See also
Add span to the range of the text.
val s = "Hello, World!".toSpannable()
s[0..5] = UnderlineSpan()
Content copied to clipboard
Note: The range end value is exclusive.