StartLinearSnapHelper
一个可以让线性RecyclerView的Item居左或者居右吸附对齐的SnapHelper类,集成自 LinearSnapHelper,修改了对齐规则为靠左或者靠右
Github:
https://github.com/lhm0603/StartLinearSnapHelper
添加依赖
implementation 'com.xm.widget:StartLinearSnapHelper:<latest version>'
使用方式
Kotlin
recyclerView.layoutManager = LinearLayoutManager(this, Recy