vigu vigu - 2 years ago 974
Android Question

How to auto scroll up Recycler view in Android?

I have developed some chat application where i can send and received messages. But the problem is whenever i send or receive messages the recycler view is not scrolling to top so that messages gets diplayed above the keypad.i have used the above mentioned recycler view

Please help me out.

Answer Source

on updating recyclerview try to run this code : Runnable() {
                        public void run() {
                            //call smooth scroll
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download