首页 > 代码库 > Your content must have a ListView whose id attribute is 'android.R.id.list'

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'