RecyclerView 滚动到指定position与偏移scrollToPositionWithOffset(position,offset)
LinearLayoutManager layoutManager = (LinearLayoutManager) recyclerView.getLayoutManager();
offsetY = -DisplayUtils.dip2px(this,7);
layoutManager.scrollToPositionWithOffset(position, offsetY);
offsetY 可以为负数
代码一看就懂~不多加解释!