Created
May 19, 2017 00:43
-
-
Save ChaMinGyu/457fafe86d3d0a757a85bbc9bd0e5fc6 to your computer and use it in GitHub Desktop.
Fragment DataBinding
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
public class BaseFragment <T extends ViewDataBinding> extends Fragment { | |
private T bind; | |
public T getBind() { | |
return bind; | |
} | |
public View setBindView(View view){ | |
bind = DataBindingUtil.bind(view); | |
return bind.getRoot(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment