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?


编码:

&amp;

For special character I normally use the Unicode definition, for the '&' for example: u0026 if I am correct. Here is a nice reference page: http://jrgraphix.net/research/unicode_blocks.php?block=0


This is a my issues, my solution is as following: Use &gt; for <, &lt; for > , &amp; for & , "'" for ' , &quot for ""

链接地址: http://www.djcxy.com/p/60822.html

上一篇: Xcode4:在哪里改变tabbar

下一篇: 我如何在android strings.xml中编写字符&