在Android Lint检查中“命名空间未绑定”

时间:2013-07-01 21:18:52

标签: android namespaces android-studio lint

我在Android Studio中,运行lint检查时得到“Namespace未绑定”。这是什么意思?我的代码仍然正常,我只是很好奇。警告是针对LinearLayout标记(打开和关闭)。

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    style="@style/outerLayoutWithMargins"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/bla"
        android:gravity="center"
        android:layout_marginTop="20dp"
        android:layout_marginBottom="4dp"
        android:textStyle="bold"
        android:textColor="@color/bla"/>

    <View
        android:id="@+id/bla"
        android:background="@color/bla"
        android:layout_width="fill_parent"
        android:layout_height="3dp" />

    <ListView
        android:id="@android:id/list"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:choiceMode="singleChoice"
        android:divider="#000000"
        android:dividerHeight="0.5dp"/>

</LinearLayout>

0 个答案:

没有答案
相关问题