How to put < or> in an android button

前端 未结 4 697
谎友^
谎友^ 2021-01-05 02:22

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?

    
相关标签:
4条回答
  • 2021-01-05 03:09

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

    in general you should escape the following characters:

    < &lt;
    > &gt;
    " &quot;
    & &amp;
    
    0 讨论(0)
  • 2021-01-05 03:18

    have you tried &lt; or &#60;

    0 讨论(0)
  • 2021-01-05 03:19

    Have you tried &lt; and &gt;.

    0 讨论(0)
  • 2021-01-05 03:28

    Yes yoh need to try the

    < &lt;
    > &gt;
    
    0 讨论(0)
提交回复
热议问题