这一行给出了一个错误。如何使用“&”作为文本属性?
<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"/>
最佳答案
你应该使用这个:
&
而不是:
&
关于java - 无法使用 "&"作为 Android Studio 中按钮的文本属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35816391/