Skip to content

Instantly share code, notes, and snippets.

@julianfalcionelli
Created October 24, 2016 20:05
Show Gist options
  • Save julianfalcionelli/e9381dd7899060a3eba31049a11a390e to your computer and use it in GitHub Desktop.
Save julianfalcionelli/e9381dd7899060a3eba31049a11a390e to your computer and use it in GitHub Desktop.
DataBinding Example
class ExampleActivity extends Activity {
private ActivityExampleBinding mBinding;
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mBinding = DataBindingUtil.setContentView(this, R.layout.example_activity);
mBinding.title.setText("Hello World");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment