<ListView
  android:id="@id/android:list"
  android:background="#ffffffff"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
/> listview是这样写的这时候。。在Activity的界面不能接受listview的id。啊。。是不是不能用
android:id="@id/android:list"  这种方法定义啊

解决方案 »

  1.   

    android:id="@id/android:list"换成个android:id="@+id/xx_listview"
      

  2.   


    大哥,这个不行啊,改了之后立即就报错了
    01-01 08:08:03.495: ERROR/AndroidRuntime(3968): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
      

  3.   

    @id是用Android中的id,而@+id才是用我们自己定义的ID
      

  4.   

    改为android:id="@+id/list_id"list_id为自己定义的ListView的ID~~~~