Summary
In this chapter, we have seen how to combine design patterns to perform complex tasks. We created a builder to allow users to construct a sandwich of their choice and to customize it with a decorator pattern. We also explored another vital pattern, the prototype, and saw how vital it can be whenever we have large files or slow processes to contend with.
As well as delving into the concepts of pattern design, the chapter included the more practical aspects of setting, reading, and responding to compound buttons such as switches and checkboxes, and this formed a significant step on the way to developing more sophisticated systems.
In the next chapter, we will look more closely at communicating with the user through the use of various Android notification tools, such as the snack bar and how services and broadcasts play a part in Android development.