How to use androidx.recyclerview.widget.RecyclerView with tools:listitem?

前端 未结 1 1070
渐次进展
渐次进展 2021-02-15 18:38

How to use androidx.recyclerview.widget.RecyclerView with tools:listitem? I have this layout:



        
1条回答
  •  北荒
    北荒 (楼主)
    2021-02-15 19:11

    From your code it seems that your recyclerview is the root element of the XML, and is missing the reference from xmlns:tools

    Try to use another root element, as a constraint layout or even just layout as per example of google sunflowerapp:

    
    
        
    
    
    

    0 讨论(0)
提交回复
热议问题