6

私は Android Studio を使用していますが、lint チェックを実行すると「名前空間がバインドされていません」というメッセージが表示されます。これは何を意味するのでしょうか?私のコードはまだ正常に動作します。ただ興味があります。警告は、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>
4

1 に答える 1

0

私は「w3-CSS」を使用していますが、前述の問題を回避するために、line-height 属性を使用するタグに CSS 要素を追加します。スタイル定義に含めるようにしてください。

于 2021-10-18T03:53:20.077 に答える