android - ChatFirebaseAdapter Load more data when reach Top of recyclerview -


hi everyone

i'm using adapter link https://github.com/alebarreto/firebaseandroidchat/blob/master/app/src/main/java/alessandro/firebaseandroid/adapter/chatfirebaseadapter.java

firebaseadapter = new chatfirebaseadapter(mfirebasedatabasereference.child(path), usermodel.getid(),this, getactivity());  rvlistmessage.setadapter(firebaseadapter);      rvlistmessage.addonscrolllistener(new recyclerview.onscrolllistener() {          @override         public void onscrollstatechanged( recyclerview recyclerview, int newstate){             super.onscrollstatechanged(recyclerview,newstate);              if (newstate == recyclerview.scroll_state_idle) { // on scroll stop                 // here load more data             }         }      }); 

i know how can limite number of data loaded chatfirebaseadapter , how tell chatfirebaseadapter load more messages when reach top of recyclerview


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -