1. Are you ready for the Galaxy S20? Here is everything we know so far!

What is the Data Binding class called now?

Discussion in 'Android Development' started by Stokestack, Jun 23, 2020.

  1. Stokestack

    Stokestack Lurker
    Thread Starter

    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: ?
     


Loading...

Share This Page

Loading...