gpt4 book ai didi

android - Android Lint 检查中的 "Namespace is not bound"

转载 作者:行者123 更新时间:2023-12-04 16:50:42 24 4
gpt4 key购买 nike

我在 Android Studio 中,运行 lint 检查时得到“未绑定(bind)命名空间”。这是什么意思?我的代码仍然可以正常工作,我只是好奇。警告针对 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>

最佳答案

我正在使用“w3-CSS”,为了解决提到的问题,我为使用 line-height 属性的标签添加了一个 CSS 元素。尝试将其包含在样式定义中。

关于android - Android Lint 检查中的 "Namespace is not bound",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17413899/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com