上一节我们只是简单了介绍了Android
Design风格中的ActionBar的简单实用,如添加MenuItem,这节我们会进一步了解ActionBar的其他功能。在Android
Develop的文档(http://developer.android.com/training/implement...
分类:
移动开发 时间:
2014-05-12 09:10:11
阅读次数:
426
本文主要分析了模板方法模式、命令模式、责任链模式、策略模式、迭代器模式,介绍它们的定义、优缺点、使用场景,以及实例代码。为了深刻地理解设计模式,最重要的还是动手编写代码。
我参照书中的例程重新构想了一些更加生动、易于理解的例子,希望大家喜欢。
代码可以通过以下链接进行浏览:
http://git.oschina.net/caipeichao/java-design-pattern
这些代码都经过编译运行,保证没有错误。...
分类:
其他好文 时间:
2014-05-11 04:44:19
阅读次数:
289
模块化 首先要理解的是什么是模块化,模块化这个词来源于研究工程设计中的《Design
Rules》,是指可组成系统的、具有某种确定独立功能的半自律性的子系统。
模块化在编程中的意义是为了减少软件的复杂度,使软件不会因为不断的扩大而导致功能维护、添加变得十分困难。而通过模块的拼接,就可以组成一...
分类:
其他好文 时间:
2014-05-10 05:03:01
阅读次数:
332
WebForm1
window.resizeTo(screen.width,screen.height-30);
HorizontalAlign="Center" DataKeyField="au_id" PageSize="3" AllowPaging="True" Width="408px"
AutoGenerateColu...
分类:
其他好文 时间:
2014-05-10 04:27:21
阅读次数:
300
Say you have an array for which theithelement
is the price of a given stock on dayi.Design an algorithm to find the maximum
profit. You may complete a...
分类:
其他好文 时间:
2014-05-10 00:24:49
阅读次数:
255
1.document.write(""); 输出语句 2.JS中的注释为//
3.传统的HTML文档顺序是:document->html->(head,body)
4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,documen...
分类:
Web程序 时间:
2014-05-09 19:40:08
阅读次数:
470
这几天一直在想着怎么破解Advanced Design System 2014.01
(64-bit Simulations),没有一点进展,有点失望,莫非正版软件必须要购买才能使用?有点想卸载的冲动,还不如装上Advanced Design
System 2009呢?今天又试了一下,终于收到回.....
分类:
其他好文 时间:
2014-05-09 09:45:47
阅读次数:
738
android.permission.WAKE_LOCK------------>keep the screen from dimming or the
processor from sleeping, or uses the MediaPlayer.setScreenOnWhilePlaying(...
分类:
移动开发 时间:
2014-05-09 06:37:42
阅读次数:
280
本文原文请见:http://www.raywenderlich.com/46988/ios-design-patterns.由
@krq_tiger(http://weibo.com/xmuzyq)翻译,如果你发现有什么错误,请与我联系谢谢。门面(Facade)模式(译者注:facade有些书籍译为...
分类:
移动开发 时间:
2014-05-08 23:07:24
阅读次数:
565