每日学习

今天讲述对recyclerview的使用:

这里是我的一个布局:


<androidx.recyclerview.widget.RecyclerView
                android:id="@+id/recycler"
                android:layout_width="match_parent"
                android:layout_height="match_parent" />

 需要导包,不过现在使用androidx是默认有这个包的。这里说一下有一些之前的包在更新为androidx后不能使用,

因为改了方法名和包名,需要去官网去看改为什么。

 
作者:哦心有
本文版权归作者和博客园共有,欢迎转载,但必须给出原文链接,并保留此段声明,否则保留追究法律责任的权利。
原文地址:https://www.cnblogs.com/haobox/p/14908935.html