recyclerview No adapter attached; skipping layout

后端 未结 30 3147
走了就别回头了
走了就别回头了 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:30

    In my case it happened cause i embedded a RecyclerView in a LinearLayout.

    I previously had a layout file only containing one root RecyclerView as follows

    
    
    

    I believe the problem is within the 3 lines separated. Anyway, I think its a simple problem, ill be working on it tomorrow; thought i should write what i found before forgetting about this thread.

提交回复
热议问题