Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Databinding inflate and setContentView
binding = DataBindingUtil.setContentView(this, R.layout.activity_main) //activity
binding = DataBindingUtil.inflate(layoutInflater, R.layout.activity_main, container, false) //fragment, view
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.