recyclerview No adapter attached; skipping layout

后端 未结 30 3153
走了就别回头了
走了就别回头了 2020-11-21 04:51

Just implemented RecyclerView in my code, replacing ListView.

Everything works fine. The data is displayed.

But error messages are

30条回答
  •  广开言路
    2020-11-21 05:10

    Check if you have missed to call this method in your adapter

    @Override
    public int getItemCount() {
        return list.size();
    }
    

提交回复
热议问题