Android Studio tips and tricks
In this section, we’re going to learn about some useful tips, shortcuts, and features in Android Studio.
We’ll start by opening the MainActivity.kt
file. When you open the file, you’ll be presented with the following layout:
Figure 2.8 – MainActivity file
We can now see the code inside the MainActivity.kt
file, which is Kotlin source code. Above the tab with the filename, we can see a navigation bar, as shown in the following screenshot:
Figure 2.9 – Navigation bar
The navigation bar enables you to navigate easily and quickly between the different project files.
We can also switch to the project view to see all the resources in our project. The switch is at the very top of all the directories. By default, it is set to Android view and has more options depending on your preference. Switching to project view gives us the following folder structure: