2012年11月6日

摘要: 折腾了一天,看了好些人写的配置,但是似乎没有一个能解决所有问题。这里记录下我的安装配置过程、遇到的问题以及解决方法。1. 安装Java JDK 和 Eclipse IDE基本的Java编程环境安装,具体参考这里。2. 安装Android SDK安装路径不要包含空格!安装成功后Eclipse界面会多出上面标记的三个按钮,点击第一个按钮选择需要安装的Android版本。3. 安装ADT(Android Development Tools)依次Eclipse > Help > Install New Software > Add, Name栏输入“ADT Plugin”, 地址栏输 阅读全文
posted @ 2012-11-06 14:26 GraphicsMe 阅读(30993) 评论(7) 推荐(2) 编辑

2011年12月11日

摘要: 什么是访问者模式? Definition:Represent an operation to be performed on the elements of an object structure. Visitor lets you define a new operation without changing the classes of the elements on which... 阅读全文
posted @ 2011-12-11 00:38 GraphicsMe 阅读(3236) 评论(0) 推荐(0) 编辑

2011年12月9日

摘要: 什么是状态模式? Definition: Allow an object to alter its behavior when its internal state changes. The object will appear to change its class. 当对象有几种状态时,不同状态时有不同的表现,为了避免复杂的ifelse逻辑,将每个状态的逻辑单独封装... 阅读全文
posted @ 2011-12-09 19:52 GraphicsMe 阅读(1159) 评论(0) 推荐(0) 编辑

2011年12月8日

摘要: 什么是中介者模式? Mediator Pattern Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it ... 阅读全文
posted @ 2011-12-08 22:18 GraphicsMe 阅读(385) 评论(0) 推荐(0) 编辑

2011年12月7日

摘要: 什么是备忘录模式? Without violating encapsulation, capture and externalize an object’s internal state so that the object can be returned to this state later. 其实‘人’如其名,备忘模式就是为了对一个对象做备忘,允许做类似“重播”、... 阅读全文
posted @ 2011-12-07 20:31 GraphicsMe 阅读(487) 评论(0) 推荐(0) 编辑

2011年12月6日

摘要: 什么是命令模式? GoF的书的定义为:“Command pattern encapsulate request as an object, thereby letting you parameterize clients with different request, queue or log request, and support undoable operations” 换言之,讲命令封... 阅读全文
posted @ 2011-12-06 23:32 GraphicsMe 阅读(582) 评论(0) 推荐(0) 编辑

2011年12月4日

摘要: 什么是责任链模式? wikipedia的定义为:CoR pattern consists of a source of command objects and a series of processing objects. Each processing object contains a set of logic that describes the types of comman... 阅读全文
posted @ 2011-12-04 17:15 GraphicsMe 阅读(598) 评论(0) 推荐(0) 编辑

2011年12月3日

摘要: 什么是策略模式? wikipedia的定义为:Strategy Pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it.... 阅读全文
posted @ 2011-12-03 20:04 GraphicsMe 阅读(1046) 评论(0) 推荐(0) 编辑
摘要: 很久之前就想开始写blog,但是一直没有付诸行动。最近看到Coding Horror作者的几篇文章Fear of Writing、How To Achieve Ultimate Blog Success In One Easy Step,下定决心现在就开始写了。 我为什么写blog? 1. 总结:总结学到的知识,让它积累沉淀。 2. 分享:分享知识,尽量让自己的blog能够帮助到有需要... 阅读全文
posted @ 2011-12-03 16:11 GraphicsMe 阅读(194) 评论(1) 推荐(0) 编辑

导航