Palo Palo - 6 months ago 12
Android Question

How can I write character & in android strings.xml

I wrote the following in the strings.xml file:

<string name="game_settings_dragNDropMove_checkBox">Move by Drag&Drop</string>


I got the following error:

The reference to entity "Drop" must end with the ';' delimiter.


How can I write character & in the strings.xml?

Answer

Encode it:

&amp;