Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to 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?

like image 913
Palo Avatar asked Jun 16 '10 12:06

Palo


People also ask

What is an example of a characters?

Examples of characters include letters, numerical digits, common punctuation marks (such as "." or "-"), and whitespace. The concept also includes control characters, which do not correspond to visible symbols but rather to instructions to format or process the text.

What are the 7 types of characters?

7 Character Roles in Stories. If we categorize character types by the role they play in a narrative, we can hone in on seven distinct varieties: the protagonist, the antagonist, the love interest, the confidant, deuteragonists, tertiary characters, and the foil. 1.

What is character in written?

In fiction, a character (or speaker, in poetry) is a person or other being in a narrative (such as a novel, play, radio or television series, music, film, or video game).


1 Answers

Encode it:

&amp; 
like image 99
Bob Fincheimer Avatar answered Sep 28 '22 10:09

Bob Fincheimer