赞
踩
滚动到顶部
- val layoutManager = mBinding.rvList.layoutManager as LinearLayoutManager
- mBinding.rvList.postDelayed({
- layoutManager.scrollToPositionWithOffset(index, 0)
- }, 20)
滚动到刚好的位置
mBinding.rvList.postDelayed({ mBinding.rvList.scrollToPosition(index) }, 20)
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。