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
Post a Comment