【发布时间】:2013-11-20 21:14:29
【问题描述】:
我正在创建一个使用位于 res 文件夹下的 schedule_layout.xml 文件的 Android 应用程序,但我收到此错误,“Android 缺少 Android 命名空间前缀”。这是什么意思?我该如何解决?
<?xml version="1.0" encoding="utf-8"?>
<ListView
android:id="@+id/schedule"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</ListView>
【问题讨论】:
-
你错过了这个:xmlns="schemas.android.com/apk/res/android"
标签: java android xml namespaces