- Android Programming with Kotlin for Beginners
- John Horton
- 278字
- 2021-03-26 16:16:33
Summary
Remember that the goal of this chapter was to familiarize ourselves with the system and structure of Android and an Android project. Android projects are an elaborate interweaving of Kotlin and a multitude of resource files. Resource files can contain XML to describe our layouts, textual content, styles, and colors, as well as images. Resources can be produced to target different languages and regions of the world. Other resource types that we will see and use throughout the book include themes and sound effects.
It is not important to remember all the different ways in which the different resource files and Kotlin files are interconnected. It is only important to realize that they are interconnected, and also be able to examine files of various types and realize when they are dependent on code in another file. Whenever we create connections from our Kotlin code to the XML code, I will always point out the details of the connection again.
We do not need to learn XML in addition to Kotlin, but we will become a little bit familiar with it over the next 25 chapters. Kotlin will be the focus of this book, but our Kotlin code will frequently refer to the XML code, so understanding and having seen some examples of the interconnections will put you in good stead to make quicker progress.
We have also explored the emulator to get the most out of it when testing our apps.
In the next chapter, we will build three custom layouts using three different Android layout schemes. We will also write some Kotlin code so that we can switch between them with the tap of a button.