如何插入"<<"在TextView的文字? [英] How to insert "<<" text in TextView?

查看:183
本文介绍了如何插入"<<"在TextView的文字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要插入<<在的android:文本=<<但也有提高的问题:

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.

您可以告诉我怎么可以插入&LT;&LT;在XML文件中的TextView 文本

Can you tell me how can I insert << in xml file TextView text?

推荐答案

尝试&放大器; LT;&放大器; LT; 而不是&LT;&LT ; 。你有因为它们影响你的XML布局逃避这些字符。

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

这篇关于如何插入&QUOT;&LT;&LT;&QUOT;在TextView的文字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆