如何在TextView中插入"<<"文本?

use*_*673 11 java xml android

我需要插入"<<" 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.
Run Code Online (Sandbox Code Playgroud)

你能告诉我如何<<在xml文件中插入文件TextView吗?

Kai*_*Kai 19

尝试&lt;&lt;而不是<<.您必须转义这些字符,因为它们会影响您的XML布局.