app/src/main/java/com/smedic/tubtub/fragments/SearchFragment.java
private void addMoreData() {

        searchResultsList.addAll(scrollResultsList.subList(10 * onScrollIndex, onScrollIndex * 10 + 10));
        onScrollIndex++;
        handler.post(new Runnable() {
            public void run() {
                if (videoListAdapter != null) {
                    videoListAdapter.notifyDataSetChanged();
                }
            }
        });
    }
/**
     * Adds 10 items at the bottom of the list when list is scrolled to the end (10th element)
     * 50 is max number of videos
     */
Adds 10 items at the bottom of the list when list is scrolled to the end (10th element)
50 is max number of videos
Adds 10 items at the bottom of the list when list is scrolled to the end ( 10th element ) 50 is max number of videos
private void addMoreData() {
        searchResultsList.addAll(scrollResultsList.subList(10 * onScrollIndex, onScrollIndex * 10 + 10));
        onScrollIndex++;
        handler.post(new Runnable() {
            public void run() {
                if (videoListAdapter != null) {
                    videoListAdapter.notifyDataSetChanged();
                }
            }
        });
    }
private void addMoreData ( ) { searchResultsList . addAll ( scrollResultsList . subList ( 10 * onScrollIndex , onScrollIndex * 10 + 10 ) ) ; onScrollIndex ++ ; handler . post ( new Runnable ( ) { public void run ( ) { if ( videoListAdapter != null ) { videoListAdapter . notifyDataSetChanged ( ) ; } } } ) ; }
Adds 10 items at the bottom of the list when list is scrolled to the end (10th element)
 50 is max number of videos
Adds 10 items at the bottom of the list when list is scrolled to the end ( 10th element ) 50 is max number of videos