Within a TagHandler which I passed to Html.fromHtml(), I would like to append some formatted text to the given Editable output object, which then gets passed to a TextView.
Appending plain text with output.append("my text") works fine. But how to append red or italic text?
class MyTagHandler implements Html.TagHandler {
  @Override
  public void handleTag(boolean opening, String tag, Editable output, XMLReader xmlReader) {
    output.append("my text");
    // how to append red and italic text here ?
  }
}
 
     
     
    