Hoàng Diễm Quỳnh
New member
What is ActivityMainBinding in Android?
Answer
A binding class is generated for each layout file. By default, the name of the class is based on the name of the layout file, converting it to Pascal case and adding the Binding suffix to it. The above layout filename is
activity_main.
xml
so the corresponding generated class is ActivityMainBinding .
Answer
A binding class is generated for each layout file. By default, the name of the class is based on the name of the layout file, converting it to Pascal case and adding the Binding suffix to it. The above layout filename is
activity_main.
xml
so the corresponding generated class is ActivityMainBinding .