如何添加<和>在android strings.xml中 [英] How to add < and > in android strings.xml
本文介绍了如何添加<和>在android strings.xml中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在string.xml中添加< string name ="name_hint"><给定名称></string>
.为了做到这一点,转义序列是什么?要添加的字符串是<给定名称>
I need to add <string name="name_hint"><Given Name></string>
in strings.xml. What is the escape sequence in order to do that? The string to be added is <Given Name>
推荐答案
对于小于符号使用& lt;
,对于大于符号使用& gt
.所以在这里您需要替换为:
Use <
for less than symbol and >
for greater than symbol.
so here you need to replace like:
<string name="name_hint"><Given Name></string>
这篇关于如何添加<和>在android strings.xml中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文