GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — android_design_patterns_analysis/decorator/tiny-times at master · lvzhitingzhou/android_design_patterns_analysis

Expand file tree

/

tiny-times

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

tiny-times

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
readme.md
readme.md
 
 

readme.md

Outline

Android设计模式源码解析之${模式名}

本文为 Android 设计模式源码解析 中 ${模式名} 分析
Android系统版本: ${系统版本号,例如 4.2.1}
分析者:[${分析者}](${分析者 Github 地址}),分析状态:未完成,校对者:Mr.Simple,校对状态:未开始

复制一份到自己的项目文件夹下,然后根据自己项目替换掉 ${} 内容,删掉本行及上面两行。

该任务不仅要用java写出该模式的一个简单示例,还有分析该模式在Android源码中的应用,可以参考Mr.Simple的单例模式、Mr.Simple的观察者模式。

1. 模式介绍

模式的定义

模式的一句话定义

模式的使用场景

2. UML类图

这里是该设计模式的经典UML图

角色介绍

对UML图中的各个角色进行介绍

3. 模式的简单实现

简单实现的介绍

自己实现一个小型模式案例,通过这个案例让读者了解这个模式的一般应用

实现源码

上述案例的源码实现

总结

对上述的简单示例进行总结说明

Android源码中的模式实现

分析源码中的模式实现,列出相关源码,以及使用该模式原因等

4. 杂谈

该模式的优缺点以及自己的一些感悟,非所有项目必须。

写完相关内容之后到开发群告知管理员,管理员安排相关人员进行审核,审核通过之后即可。

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.