How do I add a bullet symbol in TextView?


Question

I have a TextView and I want to add a bullet symbol in my text through XML. Is it possible?

1
141
3/9/2014 11:36:10 AM

Accepted Answer

You have to use the right character encoding to accomplish this effect. You could try with •


Update

Just to clarify: use setText("\u2022 Bullet"); to add the bullet programmatically. 0x2022 = 8226

319
12/29/2015 7:32:52 AM

This worked for me:

<string name="text_with_bullet">Text with a \u2022</string>

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon