1

How to create a nested BulletSpan for a TextView, well something like :

  • item 1 has:

    • a
    • b
  • item 2 has:

    • c
    • d
Rami Dabain
  • 4,709
  • 12
  • 62
  • 106

1 Answers1

0

You can use HTML for this.

• will be your "Bullet" in HTML.

textView.setText(Html.fromHtml("&#8226; item 1 has:<br/> &#8226; a<br/> &#8226; b <br/>");

wwang
  • 605
  • 1
  • 5
  • 13
  • and the text padding? if you have a multiple line "Bullet" content ? – Rami Dabain May 26 '15 at 12:30
  • use spaces, as per [this post](http://daniel-codes.blogspot.com/2011/04/html-in-textviews.html) Android html does not support something like "tab". – wwang May 26 '15 at 13:18