我在strings.xml文件中写了以下内容:
<string name="game_settings_dragNDropMove_checkBox">Move by Drag&Drop</string>
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
The reference to entity "Drop" must end with the ';' delimiter.
Run Code Online (Sandbox Code Playgroud)
我怎样才能在strings.xml中写字符?
我正在使用以下XML处理应用程序.但是当我尝试清理/构建我的项目时,会发生以下错误:
"错误:解析XML时出错:格式不正确(无效令牌)"
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello";
/>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
它可能意味着什么?
我如何在andoroid xml文件中做到这一点没有错误?
<Key android:keyLabel="<" />
Run Code Online (Sandbox Code Playgroud)
我试过"\<"但是也不行!
任何帮助赞赏!