![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
fragment,RecyclerView
善书
这个作者很懒,什么都没留下…
展开
-
recyclerView更新数据,定位到某个位置
一共有三种方法 第一种:坐标定位 mRecycleView.smoothScrollBy(distance,duration); 第二种: mRecycleView.smoothScrollOffset() 第三种:推荐,索引定位,参数也可以通过adapter的getItemCount()-1定位到最底部 wrapRecyclerView.smoothScrollToPo原创 2017-02-09 10:46:08 · 5359 阅读 · 1 评论 -
RecyclerView的用法
一:首先是布局 <android.support.v7.widget.RecyclerView android:id="@+id/recycler_view" android:layout_width="match_parent" android:layout_height="match_parent"原创 2017-01-19 14:57:38 · 302 阅读 · 0 评论