Eclipse不接受小于按钮文本的符号,有没有办法将它转义出来以便它显示在按钮上?如何把< or >放在一个android按钮
<Button android:id="@+id/button_prev_line"
android:text="<line"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
Eclipse不接受小于按钮文本的符号,有没有办法将它转义出来以便它显示在按钮上?如何把< or >放在一个android按钮
<Button android:id="@+id/button_prev_line"
android:text="<line"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
逃避它<
与<
和>
与一般>
你应该逃脱下列字符:
< <
> >
" "
& &
你试过<
或<
你试过<
和>
。
是YOH需要尝试
< <
> >
你试过'< '或'>'? – FrustratedWithFormsDesigner 2010-10-21 14:29:56