Triangular Bullet in Android TextView for Pre-Lollipop devices

强颜欢笑 提交于 2019-12-08 03:59:50

问题


I Tried character encoding "& #8227;"---> and java strings "\u2023" and also tried pasting directly the Triangular Bullet "‣".

I tried both 1) Directly specifying in android:text attribute and 2) Extracting from resource.

All the methods specified above working fine with the Lollipop but none of them working in 4.2.2 and previous android versions.

Instead of the Bullet it is showing some rectangular box.

any ideas how to solve it ??


回答1:


For displaying ▶, use \u25b6 (for displaying ▷, use \u25b7).
Tested on a 2.2 (Froyo) emulator: works.

This is a very useful resource: http://unicode-table.com/en/



来源:https://stackoverflow.com/questions/27823463/triangular-bullet-in-android-textview-for-pre-lollipop-devices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!