Created
April 4, 2017 03:04
-
-
Save chowaikong/8c854f45890380e38bc82bb0142d0a19 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 class DataBindingViewHolder<T extends ViewDataBinding> extends RecyclerView.ViewHolder { | |
private T mBinding; | |
public DataBindingViewHolder(T binding) { | |
super(binding.getRoot()); | |
this.mBinding = binding; | |
} | |
public T getBinding() { | |
return mBinding; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment