public class UninstallRecyclerView extends android.support.v7.widget.RecyclerView.Adapter<UninstallRecyclerView.ViewHolder>
| Modifier and Type | Class and Description |
|---|---|
static interface |
UninstallRecyclerView.ItemClickListener
Interface that defines onClickListener().
|
class |
UninstallRecyclerView.ViewHolder |
| Constructor and Description |
|---|
UninstallRecyclerView(android.content.Context context,
java.util.ArrayList<Plugin> plugins)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Plugin |
getItem(int id)
Convenience method for getting Plugin object according to its position in the Adapter.
|
int |
getItemCount() |
void |
onBindViewHolder(UninstallRecyclerView.ViewHolder holder,
int position) |
UninstallRecyclerView.ViewHolder |
onCreateViewHolder(android.view.ViewGroup parent,
int viewType) |
void |
setClickListener(UninstallRecyclerView.ItemClickListener itemClickListener)
Sets TileRecyclerView.OnClickListener to respond to clicks.
|
void |
setPlugins(java.util.ArrayList<Plugin> plugins)
Sets Plugin objects to be displayed in the recycler view.
|
bindViewHolder, createViewHolder, getItemId, getItemViewType, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onBindViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, unregisterAdapterDataObserverpublic UninstallRecyclerView(android.content.Context context,
java.util.ArrayList<Plugin> plugins)
context - Context: Application contextplugins - ArrayList of Plugin.public UninstallRecyclerView.ViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType)
onCreateViewHolder in class android.support.v7.widget.RecyclerView.Adapter<UninstallRecyclerView.ViewHolder>public void onBindViewHolder(UninstallRecyclerView.ViewHolder holder, int position)
onBindViewHolder in class android.support.v7.widget.RecyclerView.Adapter<UninstallRecyclerView.ViewHolder>public int getItemCount()
getItemCount in class android.support.v7.widget.RecyclerView.Adapter<UninstallRecyclerView.ViewHolder>public void setPlugins(java.util.ArrayList<Plugin> plugins)
plugins - ArrayList of Plugin.public Plugin getItem(int id)
id - int: position in the adapter.public void setClickListener(UninstallRecyclerView.ItemClickListener itemClickListener)
itemClickListener - OnClickListener