There is a news feed, I use RecyclerView , how to press the ToolBar to lift the tape up?

    1 answer 1

    Try mRecyclerView.smoothScrollToPosition(position); where position is the number of the element to which you want to scroll (0 in your case).
    This code is inserted into the OnClick listener of your Toolbar .