Ada*_*hns 5 android lint namespaces android-studio
我在Android Studio中,运行lint检查时得到"Namespace is not bound".这是什么意思?我的代码仍然正常,我只是很好奇.警告针对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>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1078 次 |
| 最近记录: |