作者热门文章
- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我需要在 android:text = "<<"
中插入“<<”但存在以下问题:
Multiple annotations found at this line:
- [I18N] Hardcoded string "<<", should use @string resource
- The value of attribute "android:text" associated with an element type "Button" must not contain the '<'
character.
你能告诉我如何插入 <<
在 xml 文件中 TextView
文本?
最佳答案
尝试 <<
而不是 <<
.您必须转义这些字符,因为它们会影响您的 XML 布局。
关于java - 如何在TextView中插入 "<<"文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10383006/
我是一名优秀的程序员,十分优秀!