• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

What is the Data Binding class called now?

Stokestack

Lurker
If you enable View Binding, the generated binding class name takes the form of "ActivityMainBinding." But if you enable both View and Data binding, what is the second binding class called? For example, what to do in the following code:

class MainActivity : AppCompatActivity() {
private lateinit var binding: ActivityMainBinding
private lateinit var dataBinding: ?
 
Back
Top Bottom