How to insert "<<" text in TextView?

android, java, xml

Solution

Try `&lt;&lt;` instead of `<<`. You have to escape those characters because they influence your XML layout.

Problem

I need to insert "<<" in `android:text = "<<"` but there are raise problem with: ``` 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. ``` Can you tell me how can I insert `<<` in xml file `TextView` text?

Original source