April 2019
Beginner to intermediate
698 pages
15h 15m
English
Q) If we simply have an ArrayList, as we did with the Note to self app, where will it go? How would we share it between fragments (assuming both/all fragments need access to the same data)?
A) There is an entirely more elegant solution we can use to create a model layer (both the data itself and the code to maintain the data). We will see this when we explore NavigationDrawer in Chapter 26, Advanced UI with Navigation Drawer and Fragments, and Android databases in Chapter 27, Android Databases.
Read now
Unlock full access