LinearLayoutManager layoutManager = (LinearLayoutManager) recyclerView.getLayoutManager(); // recyclerView.smoothScrollToPosition(sectionIndexer.getPositionForSection(itemPosition)); layoutManager.scrollToPositionWithOffset(sectionIndexer.getPositionForSection(itemPosition),0); layoutManager.setStackFromEnd(true);
recyclerview 对应索引置顶
最新推荐文章于 2024-05-14 09:43:58 发布