建造者模式,同样是一种创建型模式,用来创建对象。 建造者模式在Android API中随处可见,譬如 AlertDialog 的对象创建过程,通常可见AlertDialog.Builder ,这种方式就是使用的建造者模式。 为了说明建造者模式,辅以Android代码:1 longinDia...
分类:
其他好文 时间:
2014-11-19 18:23:55
阅读次数:
194
package com.ceac.deng;import android.R.string;import android.support.v7.app.ActionBarActivity;import android.app.AlertDialog;import android.app.AlertDialog.Builder;import android.content.DialogInterfa...
分类:
移动开发 时间:
2014-11-19 16:10:59
阅读次数:
260
options = new DisplayImageOptions.Builder() .showImageForEmptyUri(R.drawable.ic_launcher) .cacheOnDisk(true) ...
分类:
其他好文 时间:
2014-11-19 15:41:57
阅读次数:
135
在开发中,经常会用到一个需要重复使用的模块,比如好友列表中每个用户的展示或每条动态,这些都是相同的模版,这样我们就可以把这个部分提取出来放到一个单独的.xib中。那么提取出的.xib如何在其他.xib中使用呢?接下来就说一下如何在.xib中加载其他的.xib。大概结构是这样的:创建项目,项目名称叫C...
分类:
移动开发 时间:
2014-11-19 13:56:51
阅读次数:
236
air mobile andriod ios 分页加载控件...
分类:
移动开发 时间:
2014-11-18 14:48:03
阅读次数:
214
安装好flash builder4.6
运行fb安装目录下utilities\Adobe Flash Builder 4.6 Plug-in Utility.exe 插件。
第一次选择flash builder4.6的 目录
第二次选择myeclipse\myelclipse10目录。
删除myeclipse安装目录下configuration/org.eclipse.up...
分类:
系统相关 时间:
2014-11-18 10:20:28
阅读次数:
165
??Unity3D & C#Design Patterns 23 design patterns. Creational Patterns 1. Abstract Factory抽象工厂 创建几个相似的类的一个实例 2. Builder生成器 分离对象构造与它的表示 3. Factory Method工厂方法 ...
分类:
编程语言 时间:
2014-11-16 14:41:28
阅读次数:
383
最近有个客户提出想从网站上启动一个客户端的程序,研究了下,实现方法如下: 1. 注入注册表 //create registry key for web launch
string appPath = "\"" + Application.ExecutablePath + "\" \"%1\"";
s...
问题重述:
在iOS 8中第一次运行App,Xcode出现弹出框:“Xcode process launch failed: Security”
解决方案:
“If you get this, the app has installed on your device. You have to tap the icon. It will ask you if you reall...
分类:
移动开发 时间:
2014-11-15 00:14:49
阅读次数:
288
namespace DesignPattern.Creational.Builder{ public class Director { private Builder _builder; public void SetBuilder(Builder build...
分类:
其他好文 时间:
2014-11-14 19:37:41
阅读次数:
152