According to the documentation :
setSpan(Object what, int start, int end, int flags)
Attach the specified markup object to the range start…end of the text, or move the object to that range if it was already attached elsewhere.
A StyleSpan
can only be used once in a Spannable
. You need create a StyleSpan for each text
and type