views:

72

answers:

3

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" />
+1  A: 

have you tried &lt; or &#60;

guruslan
+2  A: 

Have you tried &lt; and &gt;.

Ash Burlaczenko
+3  A: 

escape it < with &lt; and > with &gt;

in general you should escape the following characters:

< &lt;
> &gt;
" &quot;
& &amp;
knittl