Creating a package structure
Our Restaurants app has come a long way. As we tried to separate responsibilities and concerns as much as possible, new classes emerged – quite a few actually.
If we have a look on the left of Android Studio, on the Project tab, we have an overview of the classes we've defined in our project.
It's clear that our project has no folder structure at all – all files and classes are tossed around inside the restaurantsapp
root package.
Note
The name of the root package might differ if you selected a different name for your app.
Because we've opted to throw any new class inside the root package, it's difficult to have clear visibility over the project. Our approach is similar to adding dozens of files and assets on the desktop of our PC – in time, it becomes impossible to find anything on the screen.
To...