Skip to content

Instantly share code, notes, and snippets.

@Frederikos
Created March 27, 2019 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Frederikos/b3856ea5df11ac3f0e6481baebc4cde9 to your computer and use it in GitHub Desktop.
Save Frederikos/b3856ea5df11ac3f0e6481baebc4cde9 to your computer and use it in GitHub Desktop.
private ActivityMainBinding binding;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
binding = DataBindingUtil.setContentView(this, R.layout.activity_main);
//tvTitle = TextView in layout with id = tv_title
binding.tvTitle.setText("Hello world!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment