Skip to content

Instantly share code, notes, and snippets.

@gibson-khs
Last active November 28, 2017 08:30
Show Gist options
  • Select an option

  • Save gibson-khs/3db838bfc14fbcaee24c551af865de14 to your computer and use it in GitHub Desktop.

Select an option

Save gibson-khs/3db838bfc14fbcaee24c551af865de14 to your computer and use it in GitHub Desktop.
public abstract class BaseViewHolder<T> extends RecyclerView.ViewHolder {
protected Context context;
protected View parent;
public BaseViewHolder(View itemView, Context context) {
super(itemView);
ButterKnife.bind(this, itemView);
this.context = context;
parent = itemView;
}
public abstract void setData(T data);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment