Error inflating class RecyclerView

后端 未结 5 1470
野性不改
野性不改 2020-12-17 08:57

So my code simply makes a list of CardViews using RecyclerView. Upon running my code i kept getting a weird error claiming there was an error in my xml. After tinkering for

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-17 09:03

    You should add the RecyclerView in the XML in this way:

    
    
    
    

    Hope it helps!

提交回复
热议问题