Chapter 26: Advanced UI with Navigation Drawer and Fragment
In this chapter, we will see what is (arguably) the most advanced UI. The NavigationView
widget or navigation drawer, because of the way it slides out its contents, can be created simply by choosing it as a template when you create a new project. We will do just that and then we will examine the autogenerated code and learn how to interact with it. Then we will use all we know about Fragment
to populate each of the "drawers" with different behavior and views. Then in the next chapter, we will learn about databases to add some new functionality to each Fragment
.
And here is what we will be doing in this chapter:
- Introducing
NavigationView
- Getting started with the simple database app
- Implementing a
NavigationView
project based on the autogenerated Android Studio template - Adding multiple Fragments and layouts to
NavigationView
Let's take a look at this extremely cool UI pattern.
...