天天看點

《Android 源碼設計模式解析與實戰》——導讀

本節書摘來自異步社群《android 源碼設計模式解析與實戰》一書中的目錄,作者 何紅輝 , 關愛民,更多章節内容可以通路雲栖社群“異步社群”公衆号檢視

《Android 源碼設計模式解析與實戰》——導讀

目 錄

自序一

自序二

前言

緻謝

第1章 走向靈活軟體之路——面向對象的六大原則

<a href="https://yq.aliyun.com/articles/93973">1.1節優化代碼的第一步——單一職責原則</a>

<a href="https://yq.aliyun.com/articles/93976">1.2節讓程式更穩定、更靈活——開閉原則</a>

<a href="https://yq.aliyun.com/articles/93981">1.3節建構擴充性更好的系統——裡氏替換原則</a>

<a href="https://yq.aliyun.com/articles/93988">1.4節讓項目擁有變化的能力——依賴倒置原則</a>

<a href="https://yq.aliyun.com/articles/93992">1.5節系統有更高的靈活性——接口隔離原則</a>

<a href="https://yq.aliyun.com/articles/93997">1.6節更好的可擴充性——迪米特原則</a>

<a href="https://yq.aliyun.com/articles/94001">1.7節總結</a>

第2章 應用最廣的模式——單例模式

<a href="https://yq.aliyun.com/articles/94002">2.1節單例模式介紹</a>

<a href="https://yq.aliyun.com/articles/94006">2.2節單例模式的定義</a>

<a href="https://yq.aliyun.com/articles/94009">2.3節單例模式的使用場景</a>

<a href="https://yq.aliyun.com/articles/94015">2.4節單例模式uml類圖</a>

<a href="https://yq.aliyun.com/articles/94021">2.5節單例模式的簡單示例</a>

<a href="https://yq.aliyun.com/articles/94023">2.6節單例模式的其他實作方式</a>

<a href="https://yq.aliyun.com/articles/94029">2.7節android源碼中的單例模式</a>

<a href="https://yq.aliyun.com/articles/94040">2.8節無名英雄——深入了解layoutinflater</a>

<a href="https://yq.aliyun.com/articles/94044">2.9節運用單例模式</a>

<a href="https://yq.aliyun.com/articles/94047">2.10節總結</a>

第3章 自由擴充你的項目——builder模式

第4章 使程式運作更高效——原型模式

第5章 應用最廣泛的模式——工廠方法模式

第6章 建立型設計模式——抽象工廠模式

第7章 時勢造英雄——政策模式

第8章 随遇而安——狀态模式

第9章 使程式設計更有靈活性——責任鍊模式

第10章 化繁為簡的翻譯機——解釋器模式

第11章 讓程式暢通執行——指令模式

第12章 解決、解耦的鑰匙——觀察者模式

第13章 程式設計中的“後悔藥”——備忘錄模式

第14章 解決問題的“第三者”——疊代器模式

第15章 抓住問題核心——模闆方法模式

第16章 通路者模式

第17章 “和事佬”——中介者模式

第18章 程式設計好幫手——代理模式

第19章 物以類聚——組合模式

第20章 得心應手的“粘合劑”——擴充卡模式

第21章 裝飾模式

第22章 對象共享,避免建立多對象——享元模式

第23章 統一程式設計接口——外觀模式

第24章 連接配接兩地的交通樞鈕——橋接模式

第25章 mvc的介紹與實戰

第26章 mvp應用架構模式

繼續閱讀