0

This line gives an error. How can i use "&" for the text attribute?

<Button
    android:layout_width="80dp"
    android:layout_height="wrap_content"
    android:text="&"                     <----- error here
    android:textSize="30dp"
    android:layout_marginLeft="5dp"
    android:id="@+id/or"/>
Diptangsu Goswami
  • 5,554
  • 3
  • 25
  • 36

1 Answers1

3

You should use this:

&amp;

instead of:

&
user3449772
  • 749
  • 1
  • 14
  • 27