Android规定只能在主线程中更新UI,如果在子线程中更新UI 的话会提示如下错误:Only the original thread that created a view hierachy can touch its view((只有原来的线程创建一个视图层次可以触摸它的视图)。
只能在主线程中更新UI的原因是:android中相关的view和控件不是线程安全的,我们必须单独做处...
分类:
编程语言 时间:
2014-09-17 13:40:42
阅读次数:
186
来源:http://www.jq22.com/jquery-info390使用前要求:img的设置:1、class要配上“lazy”;2、用data-original代替src;3、如果想要占位的话,img别忘了写上宽高。jQuery图片延迟加载插件jQuery.lazyload | jQuery插...
分类:
Web程序 时间:
2014-09-17 10:11:31
阅读次数:
221
WDF版本键盘过滤驱动——KbfiltrThe Kbdfltr sample is an example of a keyboard input filter driver.This sample is WDF version of the original WDM filter driver sa...
分类:
其他好文 时间:
2014-09-17 02:19:11
阅读次数:
1879
Optimal MilkingTime Limit: 2000msMemory Limit: 30000KBThis problem will be judged onPKU. Original ID:211264-bit integer IO format:%lld Java class name...
分类:
其他好文 时间:
2014-09-16 23:37:01
阅读次数:
415
创建tar -cvf output.tar [source files]. -c代表create files, -f指定文件名,文件名必须跟在-f后,并且应该是参数组中最后一项。追加选项: -r. tar -rvf original.tar new-file.tar -tvf archive.tar...
分类:
其他好文 时间:
2014-09-16 23:24:31
阅读次数:
280
unity3d 触屏多点触控(旋转与缩放)/*Touch OrbitProgrammed by: Randal J. Phillips (Caliber Mengsk)Original Creation Date: 12/16/2011Last Updated: 12/16/2011Desctipt...
分类:
其他好文 时间:
2014-09-16 18:39:40
阅读次数:
314
方格取数Time Limit: 1000msMemory Limit: 65535KBThis problem will be judged onHRBUST. Original ID:121464-bit integer IO format:%lld Java class name:Main设有N...
分类:
其他好文 时间:
2014-09-16 00:18:09
阅读次数:
252
方格取数(2)Time Limit: 5000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:156964-bit integer IO format:%I64d Java class name:Main给你...
分类:
其他好文 时间:
2014-09-16 00:09:09
阅读次数:
305
查看回收站中表select object_name,original_name,partition_name,type,ts_name,createtime,droptime from recyclebin;恢复表SQL>flashbacktabletest_droptobeforedrop;或SQ...
分类:
数据库 时间:
2014-09-15 14:08:58
阅读次数:
291
The Bonus Salary!Time Limit: 2000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:376264-bit integer IO format:%lld Java class na...
分类:
其他好文 时间:
2014-09-14 23:29:47
阅读次数:
379