Created
December 7, 2015 20:45
-
-
Save AKiniyalocts/d866274ddb55bfabc4f4 to your computer and use it in GitHub Desktop.
Base class for RecyclerView holder that forces the bind() pattern
This file contains 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
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
import butterknife.ButterKnife; | |
/** | |
* Created by anthonykiniyalocts on 11/9/15. | |
*/ | |
public abstract class BaseViewHolder extends RecyclerView.ViewHolder { | |
public BaseViewHolder(View itemView) { | |
super(itemView); | |
ButterKnife.bind(this, itemView); | |
} | |
public abstract void bind(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment