Last active
November 28, 2017 08:30
-
-
Save gibson-khs/3db838bfc14fbcaee24c551af865de14 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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