How to put < or > in an android button
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" 开发者_StackOverflow社区/>
escape it <
with <
and >
with >
in general you should escape the following characters:
< <
> >
" "
& &
Have you tried <
and >
.
have you tried <
or <
Yes yoh need to try the
< <
> >
精彩评论