我在strings.xml文件中有一个字符串数组,其中有多个项目。只有一个项目中有多个百分号“%”符号需要显示。似乎没有任何关于如何转义它的建议起作用。\%,\%\%或在string-array或items标签上使用formatted="false"。当我使用\%时,Eclipse会显示该项的错误,如果我使用\%\%,那么Eclipse就可以运行,但是文本会显示两个百分号“%%”。所以有什么办法可以在strings.xml中转义百分号“%”吗?
<string-array name="details">
<item>Placement of things</item>
<item>Percentage of times placed is 30%
and percentage of times release 50%</item>
</string-array>