from : http://www.slideshare.net/PedroVicenteGmezSnch/software-design-patterns-on-android
1. Adapter
2. Memento
Problem to solve:
Our problem: Save the Android Activity state to recover it once the phone changes the orientation to portrait or landscape
3. Chain of Responsibility
Our problem: Notify events to different receivers in the application until one of them decides to process the event
Handler
4. Model View Controller
our problem :Create an application where the views implemention and the business logic model don't be coupled
ACTIVITIES ARE NOT CONTROLLERS!!!
5. Renderer
our problem : we have different video types to render with different visual representations. nomal,favorite,popular and live videos.
6. Builder
7. Command
本文深入探讨了在Android应用开发中应用设计模式的重要性,详细介绍了Adapter、Memento、Chain of Responsibility、Model-View-Controller、Renderer和Builder等关键设计模式,并通过具体案例展示了如何解决在Android开发中遇到的问题。

1040

被折叠的 条评论
为什么被折叠?



