Summary
At the end of this chapter, you should have an understanding of the basic navigation patterns and be able to translate the idea of an app in your mind into the real structure of an Android app. Fragments are a key concept in Android development, and we have spent enough time in this chapter mastering them with a review of Fragment Manager and the fragments back stack and by learning how to face common problems such as communication between them. We considered a working example of ViewPager
with PagerTabStrip
showing the tile of the pages as tabs, which you now know how to customize if needed. We have a skeleton of an app; this project can be saved at this stage and used as a template for your future developments. We are ready to continue evolving our app.
In the next chapter, we will see how to create and access the content that will populate our fragments and ViewPager
to bring our app to life.