Palo Palo - 1 year ago 95
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 Source

Encode it:

&amp;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download