Android RecyclerView滚动定位到item,并使其置顶

/**准确定位到指定位置,并且将指定位置的item置顶, 若直接调用scrollToPosition(...)方法,则不会置顶。**/
                mLayoutManager.scrollToPositionWithOffset(position, 0);
                mLayoutManager.setStackFromEnd(true);
    原文作者:LuodiJack
    原文地址: https://blog.csdn.net/A199581/article/details/54584930
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞