package com.paging.listview;

import android.widget.BaseAdapter;

import java.util.ArrayList;
import java.util.List;


public abstract class PagingBaseAdapter<T> extends BaseAdapter {

	protected List<T> items;

	public PagingBaseAdapter() {
		this.items = new ArrayList<T>();
	}

	public PagingBaseAdapter(List<T> items) {
		this.items = items;
	}

	public void addMoreItems(List<T> newItems) {
		this.items.addAll(newItems);
		notifyDataSetChanged();
	}

	public void removeAllItems() {
		this.items.clear();
		notifyDataSetChanged();
	}


}

@@ -442,32 +442,163 @@
 tChanged();%0A%09%7D%0A%0A
+%09public void addMoreItems(int location, List%3CT%3E newItems) %7B%0A%09%09this.items.addAll(location, newItems);%0A%09%09notifyDataSetChanged();%0A%09%7D%0A%0A
 %09public void rem

Add addMoreItems(int location, List<T> newItems) to the PagingBaseAdapter