我试图将 xml 中的按钮文本设置为“
<Button
android:id="@+id/test"
android:text="<<<"
android:layout_width="wrap_content"
android:layout_height="match_parent" />
所以我跳到我的 strings.xml 并在那里输入它,但这显然行不通。
<string name="abc"> <<< </string>
有解决方法吗?
这些是 html 实体,也适用于 android studio:
> can be replaced with >
< can be replaced with <
" can be replaced with ", “ or ”
' can be replaced with ', ‘ or ’
} can be replaced with }
& can be replaced with &
space can be replaced with  
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)