0

このエラーが発生し続ける

要素タイプ「ListView」に関連付けられた属性「android:id」のプレフィックス「android」はバインドされていません。

エラーが発生するコードのビット

<ListView
    android:id="@android:id/list"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:choiceMode="singleChoice">
</ListView>

別のコンポーネントを作成する場合のように、このコードが最初のveiw状態にない場合は機能しますが、IDが参照しているアイテムのリストを表示するには、ホームビューに必要ですが、未定義の状態を言い続けます

`

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">
    <s:List
        android:id="@+id/Games"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
    </s:List>
    </LinearLayout>

`

4

1 に答える 1

0

@ android:id/listを@+id/listに変更する必要があると思います

<ListView
    android:id="@+id/list"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:choiceMode="singleChoice">
</ListView>

これはうまくいくはずです!

于 2013-03-17T05:41:18.783 に答える