I am writing a chat like WhatsApp, I use RecyclerView to display info from the server.

How can I make the RecyclerView move down with the advent of new information? In advance to the blogger!

    1 answer 1

    You can simply scroll to the last item in the list like this:

     recyclerView.scrollToPosition(recyclerView.getAdapter.getItemCount()-1); 
    • Thank you very much, it helped! - OPTIMIST .KZ
    • @ OPTIMIST.KZ, if one of the suggested answers solved your problem, then you can mark it as correct by clicking on the check mark to the left of the response body) - Yuriy SPb
    • I press but they say that I do not have enough rating - OPTIMIST .KZ
    • @ OPTIMIST.KZ, this is what you are trying to press up on the arrow - for it you need 15 reputations. And there is a tick below - you should press it) - Yuriy Spb
    • Thank you all! Clicked ) - OPTIMIST .KZ