Alex Rivera | Logout

Add tick mark (✔) to string.xml

Asked 2011-04-07T10:41:46.707
28

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?

Edit
Report

2 Answers

9

Try using ✓ as the string value, then use Html.fromHtml to parse the string.

answered 2011-06-29T09:16:16.957
5

Instead of using an unicode value, I would also recommend you to use a Drawable inside a TextView. For example, you can add the drawable to the TextView using android:drawableRight.

answered 2011-04-07T10:48:24.463

Your Answer