public abstract class

SimpleRecyclerViewAdapter

extends
java.lang.Object
   ↳
     ↳ com.pdftron.pdf.widget.recyclerview.SimpleRecyclerViewAdapter<T, VH extends RecyclerView.ViewHolder>
Known Direct Subclasses
Known Indirect Subclasses

Summary

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)
The overloaded implementation of RecyclerView.Adapter#onAttachedToRecyclerView(RecyclerView).
void onBindViewHolder(VH holder, int position)
The overloaded implementation of RecyclerView.Adapter#onBindViewHolder(RecyclerView.ViewHolder, int).
void onDetachedFromRecyclerView(RecyclerView recyclerView)
The overloaded implementation of RecyclerView.Adapter#onDetachedFromRecyclerView(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

Public Constructors

public SimpleRecyclerViewAdapter ()

Class constructor

public SimpleRecyclerViewAdapter (ViewHolderBindListener listener)

Class constructor

Public Methods

public abstract void add (T item)

Adds the item.

Parameters
item The item

public abstract T getItem (int position)

Returns the item in the specified position.

Parameters
position The position
Returns
  • The item

public RecyclerView getRecyclerView ()

Returns
  • the recycler view

public abstract void insert (T item, int position)

Inserts the item at the specified position.

Parameters
item The item
position The position

public void onAttachedToRecyclerView (RecyclerView recyclerView)

The overloaded implementation of RecyclerView.Adapter#onAttachedToRecyclerView(RecyclerView).

public void onBindViewHolder (VH holder, int position)

The overloaded implementation of RecyclerView.Adapter#onBindViewHolder(RecyclerView.ViewHolder, int).

public void onDetachedFromRecyclerView (RecyclerView recyclerView)

The overloaded implementation of RecyclerView.Adapter#onDetachedFromRecyclerView(RecyclerView).

public abstract boolean remove (T item)

Removes the item.

Parameters
item The item
Returns
  • True if the item is removed

public abstract T removeAt (int position)

Removes the item at the specified position.

Parameters
position The position
Returns
  • The removed item

public abstract void updateSpanCount (int count)

Updates span count.

Parameters
count The span count