使用SnapHelper
new LinearSnapHelper().attachToRecyclerView(recyclerView);
//或者
newPagerSnapHelper().attachToRecyclerView(mRecyclerView);
使用SnapHelper
new LinearSnapHelper().attachToRecyclerView(recyclerView);
//或者
newPagerSnapHelper().attachToRecyclerView(mRecyclerView);
本文标题:RecyclerView滑动停止后item居中停靠
本文链接:https://www.haomeiwen.com/subject/awegdqtx.html
网友评论