how can I enter character “<” in strings.xml?

后端 未结 3 496
情话喂你
情话喂你 2021-01-26 04:56

I want to enter string \" -< \" in strings.xml file in eclipse, the string has character < and I couldn\'t add it to xml file withou

相关标签:
3条回答
  • 2021-01-26 05:15

    If you are using eclipse then right click on strings.xml & open it with "Android Common XML Editor" & add from there it will handle escaping for you.

    0 讨论(0)
  • 2021-01-26 05:25

    Two options

    &amp;
    
    <![CDATA[&this is my> string and I <can put all the strange symbols I want inside]]>
    
    0 讨论(0)
  • 2021-01-26 05:39

    In the graphical editor (i guess the "Recources" tab), you can type any symbol into the value box, and it'll automatically put the appropriate characters in the xml. So that's good if you don't want to look the codes up.

    0 讨论(0)
提交回复
热议问题