Summary
In this chapter, we have analyzed how data can be presented in Android and discussed the libraries we have available now. We have looked at Android lifecycles and the potential issues that applications could have regarding lifecycles and then looked at how libraries such as ViewModel
and LiveData
solve most of these problems. We then looked at how the UI works in Android and how we would need to deal with using XML to define layouts in which we would insert the views that the layouts needed to display, and how we would need to update the state of the views when the data changes. We then looked at how Jetpack Compose solves these issues in a declarative functional way. We built upon the exercises in the previous chapter to show how we can integrate multiple libraries in a single application and display data from the internet.
In the next chapter, we will deal with managing the dependencies inside an application and the libraries available for doing so.