public class AppsListFragmentAdapter extends android.support.v7.widget.RecyclerView.Adapter<AppsListFragmentAdapter.SimpleViewHolder>
Modifier and Type | Class and Description |
---|---|
static interface |
AppsListFragmentAdapter.OnItemClicked |
(package private) static class |
AppsListFragmentAdapter.SimpleViewHolder |
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<Apps> |
apps |
private AppsListFragmentAdapter.OnItemClicked |
onClick |
Constructor and Description |
---|
AppsListFragmentAdapter(java.util.ArrayList<Apps> apps) |
Modifier and Type | Method and Description |
---|---|
int |
getItemCount() |
void |
onBindViewHolder(AppsListFragmentAdapter.SimpleViewHolder holder,
int position) |
AppsListFragmentAdapter.SimpleViewHolder |
onCreateViewHolder(android.view.ViewGroup parent,
int viewType) |
void |
setOnClick(AppsListFragmentAdapter.OnItemClicked onClick) |
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, unregisterAdapterDataObserver
private java.util.ArrayList<Apps> apps
private AppsListFragmentAdapter.OnItemClicked onClick
public AppsListFragmentAdapter(java.util.ArrayList<Apps> apps)
public AppsListFragmentAdapter.SimpleViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType)
onCreateViewHolder
in class android.support.v7.widget.RecyclerView.Adapter<AppsListFragmentAdapter.SimpleViewHolder>
public void onBindViewHolder(AppsListFragmentAdapter.SimpleViewHolder holder, int position)
onBindViewHolder
in class android.support.v7.widget.RecyclerView.Adapter<AppsListFragmentAdapter.SimpleViewHolder>
public int getItemCount()
getItemCount
in class android.support.v7.widget.RecyclerView.Adapter<AppsListFragmentAdapter.SimpleViewHolder>
public void setOnClick(AppsListFragmentAdapter.OnItemClicked onClick)