ListView whose id attribute is 'android.R.id.list' Error when I have the ListView id set correctly

落花浮王杯 提交于 2019-11-28 09:06:07
thepearson

android:id="@android:id/list" works perfectly, My issue was I had a Splash screen that inherited a base class which was inheriting ListActivity and had no ListView defined for the splash screen activity. I have altered the SplashScreen to just inherit Activity. All works as expected.

I was facing the same issue. I extende Activity instead of ListActivity class and this resolved my problem.

You are saying that you use custom adapter, but from code i can't see such adapter. Here you can download whole android project,http://blog.sptechnolab.com/wp-content/uploads/2011/02/listBlog.zip.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!