Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add tick mark (✔) to string.xml

Tags:

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?

like image 698
chiranjib Avatar asked Apr 07 '11 10:04

chiranjib


People also ask

How do I insert a tick in HTML?

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 ✓ .

What is hyphen in XML?

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.

How do you put and in string?

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.


1 Answers

Add unicode symbol "\u2713" to your string resource or you can use it from code as String object.

String checkedMark = "\u2713"; 
like image 166
Roman Smoliar Avatar answered Oct 06 '22 06:10

Roman Smoliar