Skip to content

Instantly share code, notes, and snippets.

@stfalconaleks
Created October 6, 2017 08:05
Show Gist options
  • Save stfalconaleks/70f8ec516ce49c1d97a45cc84b95a4b9 to your computer and use it in GitHub Desktop.
Save stfalconaleks/70f8ec516ce49c1d97a45cc84b95a4b9 to your computer and use it in GitHub Desktop.
public class ProfileActivity
extends BindingActivity<ActivityProfileBinding, ProfileViewModel> {
@Override
public ProfileViewModel onCreate() {
return new ProfileViewModel(this);
}
@Override
public int getVariable() {
return BR.viewModel;
}
@Override
public int getLayoutResources() {
return R.layout.activity_profile;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment