ListSelectorAdapter.ViewHolder

public static abstract class ViewHolder extends RecyclerView.ViewHolder implements ListSelectorAdapter.OnSelectionChangedListener, View.OnClickListener, View.OnLongClickListener

Fields

mCheckBox

public CompoundButton mCheckBox

mClickListener

public OnItemClickListener mClickListener

mLongClickListener

public OnItemLongClickListener mLongClickListener

mPosition

public int mPosition

Constructors

ViewHolder

public ViewHolder(View itemView, boolean singleSelectable, OnItemClickListener clickListener, OnItemLongClickListener longClickListener)

Methods

onClick

public void onClick(View view)

onLongClick

public boolean onLongClick(View v)

onSelectionChanged

public void onSelectionChanged(int position, boolean selection)