![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
RecyclerView
Hunter2916
快乐的小码农,学习学习ing
展开
-
Recyclerview属性配置记录
1、requiresFadingEdge:属性用来设置拉滚动条时 ,边框渐变的方向。2、fadingEdgeLength:用来设置边框渐变的长度。原创 2023-12-07 14:32:57 · 595 阅读 · 0 评论 -
使用BaseRecyclerViewAdapterHelper和recyclerview时addData数据不能滚动
1、在项目中一个页面存在两个recyclerview,在底部recyclerview下拉刷新时,不能自动滚动代码如下:<com.scwang.smartrefresh.layout.SmartRefreshLayout android:id="@+id/refresh" android:layout_width="match_parent" ...原创 2020-03-23 23:11:15 · 535 阅读 · 0 评论 -
RecyclerView setHasFixedSize(true); 的作用
下文翻译:RecyclerView的尺寸在每次改变时,比如你加任何些东西。setHasFixedSize 的作用就是确保尺寸是通过用户输入从而确保RecyclerView的尺寸是一个常数。RecyclerView 的Item宽或者高不会变。每一个Item添加或者删除都不会变。如果你没有设置setHasFixedSized没有设置的代价将会是非常昂贵的。因为RecyclerView会需要而外计算每个...转载 2019-08-28 11:38:56 · 797 阅读 · 0 评论