Chapter 2 Errata

“You can create layouts in one of two ways:
Using an XML file that lets you declare your user interface ahead of time.
Writing Java code to programmatically create your layout when your app runs.”

Excerpt From: By Darryl Bayliss. “Android Apprentice.” Apple Books.

Is it only by using Java code that you can programmatically create a layout? Can’t you also use Kotlin?

@abunur Thank you for the heads up - much appreciated. We will definitely fix this in the book’s next version.