scrollto()完全没效果
scrollby()得经过计算,特麻烦
scrolltoposition()不会将要滑动到的位置顶置
那么怎么要实现类似于首字母检索的功能呢
猪脚登场
scrollToPositionWithOffset
用法
((LinearLayoutManager)recyclerview.getLayoutManager()).scrollToPositionWithOffset(position,0);
scrollto()完全没效果
scrollby()得经过计算,特麻烦
scrolltoposition()不会将要滑动到的位置顶置
那么怎么要实现类似于首字母检索的功能呢
猪脚登场
scrollToPositionWithOffset
用法
((LinearLayoutManager)recyclerview.getLayoutManager()).scrollToPositionWithOffset(position,0);