commonsguy / cwac-richedit库的无序列表间距问题

时间:2016-08-25 13:59:31

标签: android commonsware-cwac

我正在使用commonsguy / cwac-richedit库进行富文本编辑,我正在使用以下代码解析html文件。库提供了子弹,我自定义了子弹和文本之间的空间,但是我无法在Bullet.Can之前提供空间。你可以帮忙。

 try {
  SpanTagRoster tagRoster = new SpanTagRoster();
  Spanned fromInput = new SpannableStringGenerator(tagRoster).fromXhtml("<ul><li>Simple Html with some text in unordered list"</li></ul>),
    appContext, tv);

  textView.setText(fromInput);

} catch (ParserConfigurationException e) {
  e.printStackTrace();
} catch (SAXException e) {
  e.printStackTrace();
} catch (IOException e) {
  e.printStackTrace();
}


      •  This is my output.
         •   I need to show line with space before Bullet.

0 个答案:

没有答案