Android: Best practices for Text — Part 4: Symbol

Another way to show special characters in your file is by so-called “character entity”.

Use setText("\u2022 Bullet"); to add the bullet programmatically. 0x2022 = 8226

Decimal Form

For example, the bullet symbol • is Unicode character number 8226. In HTML, you can write it as •.

Hexadecimal Form

The number 8226 in hexadecimal is 2022. Sometimes you only know the hexadecimal number of a character. You can write it using…

--

--

🎓 “A person who never made a mistake never tried anything new.” —Albert Einstein

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Leo N

🎓 “A person who never made a mistake never tried anything new.” —Albert Einstein