hasDrawableSpanWithTint

public Unit hasDrawableSpanWithTint(Integer queryStart, Integer queryEnd, @DrawableRes() Integer resId, @ColorRes() Integer tintColorId, Function1<Drawable, Bitmap> toBitmap)

Checks if the drawable span displayed in the view

Parameters

queryStart

Index of the character that is the beginning of the range of text to which span is attached

queryEnd

Index of the character that is the end of the range of text to which span is attached

resId

Drawable resource to be matched

tintColorId

Tint color resource id

toBitmap

Lambda with custom Drawable -> Bitmap converter (default is null)


public Unit hasDrawableSpanWithTint(Integer queryStart, Integer queryEnd, Drawable drawable, @ColorRes() Integer tintColorId, Function1<Drawable, Bitmap> toBitmap)

Checks if the drawable span displayed in the view

Parameters

queryStart

Index of the character that is the beginning of the range of text to which span is attached

queryEnd

Index of the character that is the end of the range of text to which span is attached

drawable

Drawable to be matched

tintColorId

Tint color resource id

toBitmap

Lambda with custom Drawable -> Bitmap converter (default is null)


public Unit hasDrawableSpanWithTint(Integer spanIndex, @DrawableRes() Integer resId, @ColorRes() Integer tintColorId, Function1<Drawable, Bitmap> toBitmap)

Checks if the drawable span displayed in the view

Parameters

spanIndex

Index of span in string's spans array

resId

Drawable resource to be matched

tintColorId

Tint color resource id

toBitmap

Lambda with custom Drawable -> Bitmap converter (default is null)


public Unit hasDrawableSpanWithTint(Integer spanIndex, Drawable drawable, @ColorRes() Integer tintColorId, Function1<Drawable, Bitmap> toBitmap)

Checks if the drawable span displayed in the view

Parameters

spanIndex

Index of span in string's spans array

drawable

Drawable to be matched

tintColorId

Tint color resource id

toBitmap

Lambda with custom Drawable -> Bitmap converter (default is null)