如何放置<或>在一个android按钮中 [英] How to put < or > in an android button
本文介绍了如何放置<或>在一个android按钮中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Eclipse不接受按钮文本的小于号,是否有一种方法可以将其转义,以便在按钮上显示?
Eclipse doesn't accept the less than symbol for the button text, is there a way to escape it so it shows on the button?
<Button android:id="@+id/button_prev_line"
android:text="<line"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
推荐答案
使用<
转义<
,使用>
通常,您应该转义以下字符:
in general you should escape the following characters:
< <
> >
" "
& &
这篇关于如何放置<或>在一个android按钮中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文