开发者

Android: Specifying a literal '@'?

Is there a way to set some attribute to the character '@' ?

i.e. explicitly not referencing an开发者_JAVA百科y resource, just want the '@' sign?


Figured it out... just prefix it with \ i.e.:

<Button android:text="\@" />

It seems the character '?' requires escaping as well.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜