I am adding tick mark (✔) on a string message on the strings.xml
, but I am getting a "box" instead of the tick mark when I am display that on the mobile device.
I have directly pasted the symbol on my string message.
Is there any way we can handle that? Do we need to use an unicode value?
The Unicode and HTML Characters for CheckmarksRemove the U+ and replace it with an ampersand ( & ), pound sign (#), and x . Then type the 2713 in, and then a semi-colon. So, it becomes ✓ .
The dash is a punctuation mark that is similar to a hyphen or minus sign, but differs from both of these symbols primarily in length and function. The most common versions of the dash are the en dash (–) and the em dash (—), named for the length of a typeface's lower-case n and upper-case M respectively.
The reference to entity "Drop" must end with the ';' delimiter. How can I write character & in the strings. xml? In android studio, you can simply press Alt+Enter and it will convert for you.
Add unicode symbol "\u2713"
to your string resource or you can use it from code as String object.
String checkedMark = "\u2713";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With