`

Android Listview 报错 'android.R.id.list'

阅读更多

错误:java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'

 

问题在于listview在xml中是定义的有问题,一定要写成


<ListView
android:id="@android:id/list"//这里必须是android:id/list

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics