ListView 下拉刷新,上拉加载更多的原理:(1)主要是onScroll()方法和onTouchEvent()方法,先是onTouchEvent()的ACTION_DOWN,然后是 ACTION_MOVE和onScroll()方法同时进行,最后是onTouchEvent()的ACTION_UP。...
分类:
移动开发 时间:
2014-11-19 17:51:23
阅读次数:
238
一、基本目标
在JavaScript设计一个分秒倒计时器,一旦时间完成使按钮变成不可点击状态
具体效果如下图,为了说明问题,调成每50毫秒也就是每0.05跳一次表,
真正使用的时候,把window.onload=function(){...}中的setInterval("clock.move()",50);从50调成1000即可。
在时间用完之前,按钮还是可以点击的。
时间用完之...
分类:
编程语言 时间:
2014-11-19 11:02:57
阅读次数:
280
>其中的"help"可以换成以下内容 pointer 手形 crosshair 十字形 text 文本形 wait 沙漏形 move 十字箭头形 help 问号形 e-resize 右箭头形 n-resize 上箭头形 nw-resize 左上箭头形 w-resize 左箭头形 s-resize 下...
分类:
其他好文 时间:
2014-11-18 12:04:03
阅读次数:
230
#!/usr/bin/python# -*- coding: utf-8 -*-import osimport shutildef move_logs(path,filename): destPath = path + '/../log' if os.path.exists(destPa...
分类:
其他好文 时间:
2014-11-17 20:57:38
阅读次数:
182
一、什么是swap space(交换分区)?在Linux系统中,当物理内存满了才使用Swap空间。当系统需要更多的内存资源,并且物理内存已经满了,此时,内存中那些不活跃的pages被移动(move)到swap空间。虽然,交换分区能使设备使用更少的物理内存,但这并不表示可以替换物理内存。交换分区处于硬...
分类:
其他好文 时间:
2014-11-17 19:15:26
阅读次数:
250
【重点】归总了一些简单的Smail指令。1.If语句 if-nez v0,:cond_0 如果结果不为0,就跳转到cond_0标号处 if-eqz v0,:cond_1 如果结果为0,就跳转到cond_1标号处 2.数据操作指令 move v0,v1 将v...
分类:
其他好文 时间:
2014-11-17 19:12:04
阅读次数:
295
Iframe用法,下面是一个常规的列子 <iframe?border=2?frameborder=0?width=500?height=500?marginheight=0?marginwidth=0?scrolling=no?src="move-ad.html">
</iframe> 其中: iframe用于设置文本或图形的浮...
分类:
Web程序 时间:
2014-11-17 12:38:15
阅读次数:
182
A robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right at any point ...
分类:
其他好文 时间:
2014-11-17 12:13:51
阅读次数:
184
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any po...
分类:
其他好文 时间:
2014-11-17 06:51:30
阅读次数:
164
mv命令是move的缩写,可以用来移动文件或者将文件改名(move (rename) files),是Linux系统下常用的命令,经常用来备份文件或者目录。
1.命令格式:
mv [选项] 源文件或目录 目标文件或目录
2.命令功能:
视mv命令中第二个参数类型的不同(是目标文件还是目标目录),mv命令将文件重命名或将其移至一个新的目录中。
当第二个参数类型是文件时,mv命令完成...
分类:
系统相关 时间:
2014-11-13 22:36:10
阅读次数:
320