| java.lang.Object | ||
| ↳ | ||
| ↳ | com.pdftron.pdf.widget.recyclerview.SimpleRecyclerViewAdapter<T, VH extends RecyclerView.ViewHolder> | |
Known Direct Subclasses
|
Known Indirect Subclasses
|
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
SimpleRecyclerViewAdapter()
Class constructor
| |||||||||||
|
SimpleRecyclerViewAdapter(ViewHolderBindListener listener)
Class constructor
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
add(T item)
Adds the item.
| ||||||||||
| abstract T |
getItem(int position)
Returns the item in the specified position.
| ||||||||||
| RecyclerView | getRecyclerView() | ||||||||||
| abstract void |
insert(T item, int position)
Inserts the item at the specified position.
| ||||||||||
| void | onAttachedToRecyclerView(RecyclerView recyclerView) | ||||||||||
| void | onBindViewHolder(VH holder, int position) | ||||||||||
| void | onDetachedFromRecyclerView(RecyclerView recyclerView) | ||||||||||
| abstract boolean |
remove(T item)
Removes the item.
| ||||||||||
| abstract T |
removeAt(int position)
Removes the item at the specified position.
| ||||||||||
| abstract void |
updateSpanCount(int count)
Updates span count.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Class constructor
Adds the item.
| item | The item |
|---|
Returns the item in the specified position.
| position | The position |
|---|
Inserts the item at the specified position.
| item | The item |
|---|---|
| position | The position |
Removes the item.
| item | The item |
|---|
Removes the item at the specified position.
| position | The position |
|---|
Updates span count.
| count | The span count |
|---|