java.lang.Object | |||
↳ | |||
↳ | com.pdftron.pdf.widget.recyclerview.SimpleRecyclerViewAdapter<T, VH extends RecyclerView.ViewHolder> | ||
↳ | com.pdftron.pdf.adapter.CustomStampAdapter |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CustomStampAdapter(Context context, ViewHolderBindListener bindListener)
Class constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
add(Bitmap item)
Adds the item.
| ||||||||||
Bitmap |
getItem(int position)
Returns the item in the specified position.
| ||||||||||
int | getItemCount() | ||||||||||
void |
insert(Bitmap item, int position)
Inserts the item at the specified position.
| ||||||||||
void | onBindViewHolder(CustomStampAdapter.ViewHolder holder, int position) | ||||||||||
CustomStampAdapter.ViewHolder | onCreateViewHolder(ViewGroup parent, int viewType) | ||||||||||
void |
onCustomStampUpdated(Bitmap item, int position)
should be called when a custom rubber stamp has been updated.
| ||||||||||
void | onItemDismiss(int position) | ||||||||||
void | onItemDrop(int fromPosition, int toPosition) | ||||||||||
boolean | onItemMove(int fromPosition, int toPosition) | ||||||||||
boolean |
remove(Bitmap item)
Removes the item.
| ||||||||||
Bitmap |
removeAt(int position)
Removes the item at the specified position.
| ||||||||||
void |
updateSpanCount(int count)
Updates span count.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.pdf.widget.recyclerview.SimpleRecyclerViewAdapter
| |||||||||||
From class
java.lang.Object
|
Class constructor
context | The context |
---|
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 |
should be called when a custom rubber stamp has been updated.
item | The bitmap of the updated custom rubber stamp |
---|---|
position | The zero-indexed position of custom rubber stamp in the adapter |
Removes the item.
item | The item |
---|
Removes the item at the specified position.
position | The position |
---|
Updates span count.
count | The span count |
---|