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