开发者

Android: Specifying a literal '@'?

开发者 https://www.devze.com 2023-01-30 05:49 出处:网络
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.:

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

精彩评论

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

关注公众号