There is another solution for customizing the appearance of the preferences.Design a normal XML layout with buttons or whatever you want to add to the...
分类:
其他好文 时间:
2014-07-14 00:47:37
阅读次数:
306
ay 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 at...
分类:
其他好文 时间:
2014-07-13 23:22:16
阅读次数:
294
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete at most two transactions.
Note:
You ma...
分类:
其他好文 时间:
2014-07-13 13:55:14
阅读次数:
305
目前已经两个团队做了不错的翻译http://design.1sters.com/http://www.ui.cn/Material/https://github.com/stormzhang/9GAGAndroid网址或BlogAndroid官网身为Android开发者不知道这个网站就太说不过去了,...
分类:
移动开发 时间:
2014-07-13 11:22:08
阅读次数:
242
This is the 1st pattern I study. In here, I will mark down my doubts, java study, DESIGN PRINCIPLES, DESIGN PATTERN. There are 3 design principles in ...
分类:
其他好文 时间:
2014-07-13 10:51:33
阅读次数:
229
magento商城的首页的大部分内容都是在后台的CMS->page->home page里面的,有congent和design,即内容和布局1,当然商城的关键词也是在这里->mata data,这里有加关键词和描述,2,商城首页分类标题是在content部分修改,以及分类下要调用的分类产品等,3,产...
分类:
其他好文 时间:
2014-07-13 10:05:14
阅读次数:
226
New Widgets:提供了两个新的控件RecyclerViewCardView这两个控件包含在了Android L的support library中,他们可以用于显示复杂的布局而且都默认采用了Material的风格。RecyclerView RecyclerView是更高级的Listview。....
分类:
其他好文 时间:
2014-07-13 08:05:48
阅读次数:
587
访问者模式,就是我们已经有一系列的对象了,那么就可以使用一个visitor对象一次性遍历所有的对象,就好像这个visitor访问了所有这些对象一样,所以就叫访问者模式。
实现起来也很简单,就是三个基类,其他类都是这些基类的衍生类。
下面的Action类就是访问者类了,而Person类就是被访问的对象类,而House是一个接待容器,可以接待不同的Action类。
#include
#incl...
分类:
其他好文 时间:
2014-07-12 22:22:16
阅读次数:
205
组合设计模式,就是可以把多个类组合在一个大类中,形成一个树形结构。
#include
#include
#include
using namespace std;
class Coporate
{
protected:
string name;
set coporate;
public:
explicit Coporate(string n = "", string d...
分类:
其他好文 时间:
2014-07-12 19:12:55
阅读次数:
156
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy on...
分类:
其他好文 时间:
2014-07-12 16:31:50
阅读次数:
192