Your content must have a ListView whose id attribute is 'android.R.id.list'

Posted 龙种人

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Your content must have a ListView whose id attribute is 'android.R.id.list'相关的知识,希望对你有一定的参考价值。

修改ListView的ID为 ‘ @android:id/list ’

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

 

以上是关于Your content must have a ListView whose id attribute is 'android.R.id.list'的主要内容,如果未能解决你的问题,请参考以下文章

Must and have to 的用法

sudo: Sorry, you must have a tty to run

Every derived table must have its own alias

Nullable object must have a value

android--------解决Entities and POJOs must have a usable public constructor

must/ must't / have to/ don't have to