diff --git a/paginatedrecyclerview/src/main/java/com/softrunapps/paginatedrecyclerview/PaginatedAdapter.java b/paginatedrecyclerview/src/main/java/com/softrunapps/paginatedrecyclerview/PaginatedAdapter.java index 05ba42c..2193478 100644 --- a/paginatedrecyclerview/src/main/java/com/softrunapps/paginatedrecyclerview/PaginatedAdapter.java +++ b/paginatedrecyclerview/src/main/java/com/softrunapps/paginatedrecyclerview/PaginatedAdapter.java @@ -43,6 +43,17 @@ public void submitItems(Collection collection) { } } + public void submitItem(ITEM item) { + mDataSet.add(item); + notifyDataSetChanged(); + } + + public void submitItem(ITEM item, int position) { + mDataSet.add(position, item); + notifyDataSetChanged(); + } + + protected ITEM getItem(int position) { return mDataSet.get(position); }