Chapter 7. Combining Patterns
We have seen how patterns can help us organize our code and how this can be applied specifically to Android apps, but we have only applied one pattern at a time. As the tasks we need to perform become more complex, we will need to apply several patterns, such as decorators and builders, at once and even combine them into hybrid patterns, and this is what we will do in this chapter.
We will begin by considering a more complex user interface (UI) and the code behind it. This will require us to think a little more precisely about what we actually want our application to do. This in turn will lead us to look at the prototype pattern, which provides a very efficient method for creating objects from an original, clone, object. ...
Get Android Design Patterns and Best Practice now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.