在android textview xml中指定特殊/保留字符

时间:2011-01-06 21:20:04

标签: android xml special-characters

喂,

任何人都知道如何为xml中的T​​extView对象指定“特殊”或“保留”字符?

我想在文本视图中显示的内容是?/?所以我说:

android:text="?/?"

但是虽然这在xml文件的eclipse“Graphical Layout”中正确显示,但它会出错:

error: Error: No resource found that matches the given name (at 'text' with value '?/?')

我尝试过使用:

"?/?"

但错误是一样的。

TIA,

  • 弗林克

1 个答案:

答案 0 :(得分:2)

逃离'?':

android:text="\?/\?"
相关问题