android.text.style.ReplacementSpan class is a supper span class that you can extend to create your customized span class. You can draw anything as you want in your custom span class, and then use it to replace the specified characters in your textview string.