3. Application Structure

With the decision to change the supported development platform from the ADT bundle to Android Studio also came the decision to start using Gradle as the build system. This opened the door for many developers to start assembling Android applications in a more collaborative way and changed the file structure with which prior projects were built.

In this chapter, you learn the new file system structure as well as the types of files you can include in your project, including where XML files are located, where image assets are stored, and where the Gradle build files are stored.

When you create an application in Android Studio, you find that the project is divided into an App folder and Gradle scripts. Figure 3.1 shows this ...

Get Android™ Development Patterns: Best Practices for Professional Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.