lateinit keyword is used for late initialization of variables.
-->Var is used for creating variable
-->binding is a variable name
-->What is the meaning of this (: ActivityMainBinding
) Some people said that is class and some said that created an object, I am too confused.
-->Again write the variable name binding and initialize the ActivityMainBinding.inflate(layoutInflater)
-->What is the meaning of these keywords ActivityMainBinding.inflate(layoutInflater)
-->Last Question is what is the meaning of this setContentView(binding.root)
lateinit var binding: ActivityMainBinding
binding = ActivityMainBinding.inflate(layoutInflater)
setContentView(binding.root)