Starting the Simple Database project
Create a new project in Android Studio. Call it Age Database
, use the Navigation Drawer Activity template. Before we do anything else, it is well worth running the app on an emulator to see how much has been autogenerated as part of this template:
At first glance, it is just a plain old layout with a TextView
widget. But swipe from the left edge of the screen or press the menu button and the Navigation Drawer layout reveals itself:
Now we can modify the options and insert a Fragment
(with a layout) for each option. To understand how it works, let's examine some of the autogenerated code.