app / io.geeteshk.dot.utils / Spanner

Spanner

class Spanner

Utility class for managing spans on displayed text

Constructors

<init>

Spanner(context: Context)

Utility class for managing spans on displayed text

Functions

addCharSpans

fun addCharSpans(span: MutableLiveData<Spannable>, index: Int): Unit

Add the two spans to a given character inside a Spannable and then posts to the LiveData

fun addCharSpans(span: Editable?, index: Int): Unit

Adds two spans to an Editable

removeSpans

fun removeSpans(span: MutableLiveData<Spannable>): Unit

Removes the two spans from the Spannable and posts to the LiveData

fun removeSpans(span: Editable?): Unit

Removes the two spans from the Editable