如何把一个" - "在string.xml文件 [英] How to put a "-" in string.xml file

查看:181
本文介绍了如何把一个" - "在string.xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要能够把一个 - 在里面我的strings.xml 文件中的字符串

I need to be able to put a "-" in the string inside my strings.xml file.

我的问题是,当我把我的字符串是1261eba2-9d8c-11e1-93e3-40409e0f44a1,日食破口大骂:

My problem is that when I am putting my string which is "1261eba2-9d8c-11e1-93e3-40409e0f44a1", eclipse yells:

在这一行找到多个注释:        - 替换 - 与短划线字符( - ,        与放;;#8211;)

Multiple annotations found at this line: - Replace "-" with an "en dash" character (–, &;#8211;)

我该如何解决这个问题?

How can I fix this?

推荐答案

所以,当你读了错误信息,你的回答将是 你要替换 - &放大器;#8211; 。然后,它应该工作的罚款=)

So, when you read the error message, your answer will be that you have to replace - with –. Then it should work fine =)

http://en.wikipedia.org/wiki/Dash

这篇关于如何把一个" - "在string.xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆