“Content has view with id attribute 'android.r.id.list' that is not a ListView Class.” when create a list view in a fragment

后端 未结 3 1656
南笙
南笙 2020-12-19 03:32

Here is the problem. I have a list view, and it looks fine in the building, but it broke the error. Content has view with id attribute \'android.r.id.list\' that is not a Li

3条回答
  •  时光说笑
    2020-12-19 03:52

    I was using:

    android:id="@+id/listView"
    

    Then, I have replaced to it:

    android:id="@android:id/list"
    

提交回复
热议问题