class Spanner
Utility class for managing spans on displayed text
Spanner(context: Context)
Utility class for managing spans on displayed text |
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 |
|
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 |