34,333
edits
Changes
→Working with the Binding Class
Build and run the app once again to make sure that these changes take effect.
== Working Working with the Binding Class ==
The next step is to modify the code within the MainFragment.java file to obtain a reference to the binding class instance. This is best achieved by rewriting the onCreateView() method:
return binding.getRoot();
}
.