Welcome to Commit
changes directly, or just tell me Here.
Hope you guys could bring or get something related to Android Design Pattern when developing Android Application.
MVP Architecture Introduction Link1 Link2
- View <-> Presenter: using MEDIATOR pattern to loose the coupling between classes.
- Presenter -> Model: using COMMAND pattern to decide the data manipulation on objects.
Name | Example | Link | Details |
---|---|---|---|
Composite Pattern | View/ViewGroup | Basic | |
Adapter Pattern | Adapter in ListView | Basic | |
Observer Pattern | Listener in Button | Basic | |
MVC Pattern | ListActivity | ||
MVVM Pattern | |||
Facade Pattern | Android Media Framework | ||
Bridge Pattern | AdapterView/Adapter | ||
Factory Method | Basic | ||
Template Pattern | |||
Decorator Pattern | |||
Singleton Pattern | InputMethodManager |
Name | Type | Use | Link | Advanced Link |
---|---|---|---|---|
ViewHolder Pattern | Layout Performance | ListView Optimization | [Basic] (http://developer.android.com/training/improving-layouts/smooth-scrolling.html) | |
Multithreading Pattern | Layout Performance | UI thread Performance | [Basic] (http://developer.android.com/training/improving-layouts/smooth-scrolling.html) | .1 .2 |
Layout-Hierachy Pattern | Layout Performance | XML Layout | [Basic] (http://developer.android.com/training/improving-layouts/optimizing-layout.html) | |
Viewstub Pattern | Layout Performance | XML Layout/Reduce Mem | [Basic] (http://developer.android.com/training/improving-layouts/loading-ondemand.html) | |
Tag Pattern | Layout Performance | Re-usable components | [Basic] (http://developer.android.com/training/improving-layouts/reusing-layouts.html) |