Skip to content Skip to sidebar Skip to footer

Endless Scrolling In Not Working In Below Marshmallow Version

I implemented one fragment class where data is fetching in volley response and I also implements RecyclerView.OnScrollChangeListener. Data will come at scrolling time and it's work

Solution 1:

you are facing error as 'max version to run this app is 23'. Please check your app gradle file. In that check you 'minSdkVersion'. Make sure it is not 23. it should be the minimum version which you wanted to support your app.

updated answer:- RecyclerView.setOnScrollChangeListener just need api 23 and that will not run in other versions.So please try using addOnScrollListener

recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {
       @Override
       public void onScrollStateChanged(RecyclerView recyclerView, int 
      newState) {
               super.onScrollStateChanged(recyclerView, newState);

               //onScrollStateChanged will be fire every time you scroll
              if (isLastItemDisplaying(recyclerView)) {
                  getData();
                }

        }
    }
});

Post a Comment for "Endless Scrolling In Not Working In Below Marshmallow Version"