Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何显示@我想显示&所以我做了&它工作正常但我不知道如何显示@
<string name="feedbackname">nom & prenom</string> <string name="feedbackemail"> @ email</string>
没用它显示xml错误
您应该在“@”之前使用“\”。例如
<string name="google mail">\@gmail.com</string>
参考这个链接非常有用
@不需要在 XML 中转义。你可以试试@,但你不应该这样做。
@
@
但是,这些确实需要转义:
< < > > & & ' ' " "
请提供有关您的 XML 解析器及其抛出的实际错误消息的更多详细信息。