有时,Android系统控件无法满足我们的需求,因此有必要自定义View。具体方法参见官方开发文档:http://developer.android.com/guide/topics/ui/custom-components.html一般来说,自定义控件都会去重写View的onMeasure方法,因...
分类:
移动开发 时间:
2014-05-23 22:23:57
阅读次数:
342
原文:http://wiki.openwrt.org/doc/howto/obtain.firmware.sdk为什么要使用SDK:
Reasons for using the SDK are: Compile custom software for a specific release
wh...
分类:
其他好文 时间:
2014-05-22 01:10:32
阅读次数:
452
C# 特性详解 特性(attribute)是被指定给某一声明的一则附加的声明性信息。
在C#中,有一个小的预定义特性集合。在学习如何建立我们自己的定制特性(custom attributes)之前,我们先来看看在我们的代码中如何使用预定义特性。
1 using System; 2 public c....
分类:
其他好文 时间:
2014-05-18 18:56:23
阅读次数:
305
很多 javascript 框架都提供了自定义事件(custom events),例如
jquery、yui 以及 dojo 都支持“document
ready”事件。而部分自定义事件是源自回调(callback)。回调将多个事件句柄存储在数组中,当满足触发条件时,回调系统则会从数组中获取对应的句...
分类:
编程语言 时间:
2014-05-17 19:04:40
阅读次数:
337
Using perf, the Linux Performance Analysis tool
on Ubuntu KarmicA lot has been going on with Linux performance counters (now
called performance events...
分类:
其他好文 时间:
2014-05-16 04:06:37
阅读次数:
386
material=newMaterial(Shader.Find("Custom/Alpha"));material.SetFloat("_Shininess",materialAlpha);voidOnRenderImage(RenderTexturesource,RenderTexturedestination){Graphics.Blit(source,destination,material);}
分类:
其他好文 时间:
2014-05-16 02:28:04
阅读次数:
572
MySQL5.0安装图解打开下载的mysql安装文件mysql-5.0.27-win32.zip,双击解压缩,运行“setup.exe”,出现如下界面:按“Next”继续选择安装类型,有“Typical(默认)”、“Complete(完全)”、“Custom(用户自定义)”三个选项,我们选择“Custom”,有更多的选项,也方便熟..
分类:
数据库 时间:
2014-05-15 18:52:58
阅读次数:
505
1.切换目录git checkout step-11npm
start2.效果图效果图和step
10的没有什么差别,这里主要的改动都是代码,代码做了很多优化,这里效果图就不再贴出来了.3.实现代码step-10和step-11之间的差别:https://github.com/angular/ang...
分类:
Web程序 时间:
2014-05-15 07:36:21
阅读次数:
385
Custom Ribbon in SharePoint 2010 & which not wrok when migrate from 2010 to 2013...
分类:
其他好文 时间:
2014-05-14 15:11:03
阅读次数:
297
工具:VS2010, Installshield 2008实现功能:创建一个C++ win32
DLL的工程,MSI 工程需要调用这个DLL,并将MSI工程中的两个参数,传递给DLL,参数1:Property 表中的 ProductName参数2:操作
MSI 工程的 installer datab...
分类:
其他好文 时间:
2014-05-14 10:23:32
阅读次数:
356