I have a recycler view in which I load data from url which works fine. The problem starts when I want to load more data (when scrolling ends) and to show a progress bar at the bottom and load more data. How can I do that? please tell me.
Here is my code where I want to load more data from Url below previous data .
mUserAdapter.setOnLoadMoreListener(new OnLoadMoreListener() {
        @Override
        public void onLoadMore() {
            Log.e("haint", "Load More");
            mUsers.add(null);
            mUserAdapter.notifyItemInserted(mUsers.size() - 1);
            m_Handler.post(new Runnable() {
                @Override
                public void run() {
                new Handler().postDelayed(new Runnable() {
                    @Override
                    public void run() {
                        Log.e("haint", "Load More 2");
                        sz_RecordCount = String.valueOf(m_n_DefaultRecordCount);// convert int value to string
                        sz_LastCount = String.valueOf(m_n_DeafalutLastCount);// convert int value to string /////
                        new DealNext().execute(m_DealListingURL);// POST DATA TO SERVER TO LOAD MORE DATA......
                    }
                },3000);
                }
            });
        }
    });
and also I don't want to post delay, I want when the scroll ends to show a progress bar and load more data from URL.
 
     
    