How do I add a bullet symbol in TextView?

后端 未结 9 1125
感动是毒
感动是毒 2020-11-30 17:27

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

9条回答
  •  遥遥无期
    2020-11-30 18:11

    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

提交回复
热议问题