| Modifier and Type | Field and Description |
|---|---|
protected BloatedRecyclerView.CustomRelativeWrapper |
customHeaderView |
boolean |
isLoadMoreChanged |
| Constructor and Description |
|---|
BaseRecyclerViewAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(M item,
int position) |
abstract int |
getAdapterItemCount()
Returns the number of items in the adapter bound to the parent RecyclerView.
|
BloatedRecyclerView.CustomRelativeWrapper |
getCustomHeaderView() |
android.view.View |
getInfiniteScrollView() |
M |
getItem(int position) |
int |
getItemCount() |
java.util.List<M> |
getItems() |
int |
getItemViewType(int position) |
abstract RecyclerView.ViewHolder |
onCreateViewHolder(android.view.ViewGroup parent) |
RecyclerView.ViewHolder |
onCreateViewHolder(android.view.ViewGroup viewGroup,
int position) |
void |
removeItem(M item) |
void |
setCustomHeaderView(BloatedRecyclerView.CustomRelativeWrapper customHeaderView)
Set the header view of the adapter.
|
void |
setInfiniteScrollView(android.view.View customview) |
void |
setItems(java.util.List<M> items) |
void |
swipeInfiniteScrollView(android.view.View customview) |
public boolean isLoadMoreChanged
protected BloatedRecyclerView.CustomRelativeWrapper customHeaderView
public abstract RecyclerView.ViewHolder onCreateViewHolder(android.view.ViewGroup parent)
public abstract int getAdapterItemCount()
public BloatedRecyclerView.CustomRelativeWrapper getCustomHeaderView()
public void setCustomHeaderView(BloatedRecyclerView.CustomRelativeWrapper customHeaderView)
public RecyclerView.ViewHolder onCreateViewHolder(android.view.ViewGroup viewGroup,
int position)
public java.util.List<M> getItems()
public void setItems(java.util.List<M> items)
public M getItem(int position)
public void addItem(M item, int position)
public void removeItem(M item)
public void swipeInfiniteScrollView(android.view.View customview)
public android.view.View getInfiniteScrollView()
public void setInfiniteScrollView(android.view.View customview)
public int getItemCount()
public int getItemViewType(int position)