1、EditText有一个属性:android:textCursorDrawable,这个属性是用来控制光标颜色的android:textCursorDrawable="@null","@null"作用是让光标颜色和text color一样2、android 1.5以后添加了软件虚拟键盘的功能,所以...
分类:
移动开发 时间:
2014-07-07 16:31:53
阅读次数:
210
Problem Description:A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null...
分类:
其他好文 时间:
2014-07-07 16:19:01
阅读次数:
188
一、题外话接续上一篇:MVC中Action参数绑定的过程 public IModelBinder DefaultBinder{ get { if (this._defaultBinder == null) { this._defaultB...
分类:
Web程序 时间:
2014-07-07 13:52:52
阅读次数:
188
int s = 5;int? s_null;long t;long? t_null;t = s; //隐式转换 S -> Ts = (int)t; //显示转换 T -> Ss_null = s; //隐式转换 S -> S?s = (int)s_null; //显示转换 S? -> Tt_null...
分类:
其他好文 时间:
2014-07-02 00:29:58
阅读次数:
287
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; *...
分类:
其他好文 时间:
2014-06-30 23:36:56
阅读次数:
211
1.实现商城评分小星星/*** JS评分效果*/function Score(options) { this.config = { selector: '.star', // 评分容器 renderCallback: null, // 渲染页面后回调 callback: null // 点击评分回调...
分类:
Web程序 时间:
2014-06-30 22:46:14
阅读次数:
364
C 语言标准库函数原型声明:extern char *strcpy(char* dest, const char *src);头文件:#include 功能:把从src地址开始且含有NULL结束符的字符串复制到以dest开始的地址空间说明:src和dest所指内存区域不可以重叠且dest必须有足够的...
分类:
其他好文 时间:
2014-06-30 22:45:02
阅读次数:
340
class Solution {public: ListNode *reverseBetween(ListNode *head, int m, int n) { if (head == NULL || n 0) { pre = cur; ...
分类:
其他好文 时间:
2014-06-30 15:36:26
阅读次数:
148
实现这个功能非常简单,只需要重写moveCells方法就可以了。下面是源文件中的代码:
mxGraph.prototype.moveCells = function(cells, dx, dy, clone, target, evt) {
if (cells != null && (dx != 0 || dy != 0 || clone || target != null)) {
...
分类:
其他好文 时间:
2014-06-30 10:54:15
阅读次数:
385
GC检测用于查看堆中是否有对象不再被程序使用。如果这样的对象存在,这些对象占用的内存就可以被回收利用。(如果堆中没有可用内存空间时,new操作符将会抛出OutOfMemoryException异常)GC是怎样知道一个对象是否还被程序使用呢?你可以想象一下,这不是一个容易回答的问题。
每一个程序都有一组根节点(roots),它们用于识别定位托管堆中的对象或空(null)对象指向的存储空间。比如,程序中所有全局对象指针或静态对象指针都被看作是程序根节点(roots)的一部分。另外,线程栈中任何局部变量或参数对象...
分类:
Web程序 时间:
2014-06-30 07:33:05
阅读次数:
327