Last active
September 24, 2015 23:12
-
-
Save ivacf/2842290cee04321f66c4 to your computer and use it in GitHub Desktop.
Activity that sets its content view using data binding and a view model
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
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
ProfileActivityBinding binding = | |
DataBindingUtil.setContentView(this, R.layout.profile_activity); | |
binding.setViewModel(new ProfileViewModel(this)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment