不知道各位童鞋们在开发的过程中有没有感兴趣过ListView是如何实现的呢?其实本身ListView的父类AbsListView才是关键,但是如果大家看过源码的话,会发现AbsListView将近7000多行代码,是不是头大啊,呵呵,没事,下面咱们就一起来看看吧。
我们先从类中的常量开始分析:
public static final int TRANSCRIPT_MODE_...
分类:
移动开发 时间:
2014-12-29 23:01:22
阅读次数:
249
使用Emacs的artist-mode绘制出来的
+---------------------------------------------------------+
|Applications|
|+----------------------------------------------------+
||SystemLibraries|
+----+----------------------------------------------------+
|SystemCallInt..
分类:
系统相关 时间:
2014-12-29 18:35:41
阅读次数:
227
关键代码:1 Paint mErasePaint = new Paint();2 mErasePaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.MULTIPLY));3 mErasePaint.setColor(0xFFFFFF);4 ...
分类:
其他好文 时间:
2014-12-29 11:52:52
阅读次数:
195
ns2--tcp-full.cc 1 /* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */ 2 3 /* 4 * Copyright (c) Intel Corporation 2...
分类:
其他好文 时间:
2014-12-29 10:11:33
阅读次数:
567
Problem Description
Given two rectangles and the coordinates of two points on the diagonals of each rectangle,you have to calculate the area of the intersected part of two rectangles. its sides are p...
分类:
其他好文 时间:
2014-12-29 09:07:51
阅读次数:
155
第十五章 文件属性类的实现
根用户的权限也不能是无限大、必须考虑到保护用户的隐私!用户的文件内容、程序代码可设置为根用户也不能观看,只能是文件拥有者可以查看、修改。但根用户可以删除一切非根用户的文件、也可以查看用户的目录。所以,i_mode字符更改如下:
BU16 i_mode; // 描述文件的访问权限;文件的读、写、执行权限
// i_mode.1...
分类:
其他好文 时间:
2014-12-28 23:43:00
阅读次数:
202
1. 添加service: 2.调用WCF BasicHttpBinding myBinding = new BasicHttpBinding(); myBinding.Name = "BasicHttpBinding_IAuthService"; myBinding.Security.Mode =...
分类:
其他好文 时间:
2014-12-28 23:37:31
阅读次数:
211
字符串算法有哪些呢???Tire,KM,KMP,AC自动机,后缀数组,后缀自动机,RK,Shift-And/Or,Manacher.....?这么这么多啊!!!也只能慢慢学了。。。接下来的题是按我做题顺序来排的,难度的话我就不理了(`?ω?´)BZOJ 2434: [NOI2011]阿狸的打字机第一...
分类:
其他好文 时间:
2014-12-28 20:42:24
阅读次数:
197
注意:1. Node环境下,--harmony参数启用ES6新特性,许多新特性只有在strict mode下才生效,因此使用"use strict"或者--use_strict,否则harmony没有被启用;1. 块级作用域(Block scope)// Block scopefunction f1...
分类:
Web程序 时间:
2014-12-28 18:06:24
阅读次数:
188
今天Mayuyu来学习R语言,先来学习矩阵操作。
(1)c()
c()是用来创建一个向量,比如
(2)length()
length()用来获取一个向量的长度。
(3)mode()
获取向量中数据的类型,比如
(4)rbind()和cbind()
这两个函数都是将多...
分类:
编程语言 时间:
2014-12-28 16:55:53
阅读次数:
147