<How to use Spannable in text kotlin> Hey I am lea...
# stackoverflow
u
How to use Spannable in text kotlin Hey I am learning spannable text in Android kotlin. I read everywhere how to use spannable text. I want to bold rather than search text i.e. For example 1 val value = "high blood pressure" val searchText = "Blood" Output:- high blood pressure blood will not bold and other high and pressure will be bold in text view. For example 2 val value = "diabetes" val searchText = "e" only first occurance not bold and everything I ned bold. Output:- diabetes I tried some code val spannable =...