Exploring the auto-generated code and assets

In the drawable folder, there are a number of icons, as shown in the following screenshot:

Exploring the auto-generated code and assets

These are the usual icons but also the ones that appear in the menu of the navigation drawer. We will not take the trouble to change these, but if you want to personalize the icons in your app, it should be plain by the end of this exploration how to do so.

Next, open the res/menu folder. Notice that there is an extra file titled activity_main_drawer.xml. This next code is an excerpt from this file, so we can discuss its contents:

<group android:checkableBehavior="single"> <item android:id="@+id/nav_camera" android:icon="@drawable/ic_menu_camera" ...

Get Android Programming for Beginners - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.