打地鼠的源码,有两段不是很清楚,求高手解释下 源码linkedlistarraylist注释线程 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 KickView.this.postDelayed(flush80ms, 80);KickView.this.postDelayed(flush1000ms, 1000);代码里面是什么,能看到吗? 是两个线程,高手解释下呀Runnable flush80ms = new Runnable(){public void run(){KickView.this.invalidate();KickView.this.postDelayed(this, 100);}}; -----------请加下注释-----------------------Runnable flush1000ms = new Runnable(){public void run(){LinkedList<Pic> temp = new LinkedList<Pic>();for(Pic each : holeQuite){if(each.currentType == Pic.NOTHING){temp.add(each);}}int size = temp.size();if(size == 1){temp.poll().toShow();KickView.this.invalidate();}else if(size > 1){for(int i=0; i<random.nextInt(2) + 1; i++){temp.remove(random.nextInt(temp.size())).toShow();}KickView.this.invalidate();}KickView.this.postDelayed(this, progress + random.nextInt(500));progress -= 10;}}; 谁有三星6410上用的moviNAND_Fusing_Tool.exe工具软件,能不能传一份给我,或者给个下载链接 百度地图长按事件冲突问题?? 有没有包含完整服务端和客户端的应用代码 如何调用 Activity继承下类的方法? 有谁知道怎么用android的xmpp协议实现即时通信 长按显示的对话框,如何新增一条 请问android开发工具 android 媒体库刷新问题 Android还能走多久? bitmap的问题,哈哈! 将音频格式pcm转换为arm格式 android问题
KickView.this.postDelayed(flush1000ms, 1000);代码里面是什么,能看到吗?
Runnable flush80ms = new Runnable(){
public void run(){
KickView.this.invalidate();
KickView.this.postDelayed(this, 100);
}
};
-----------请加下注释-----------------------
Runnable flush1000ms = new Runnable(){
public void run(){LinkedList<Pic> temp = new LinkedList<Pic>();
for(Pic each : holeQuite){
if(each.currentType == Pic.NOTHING){
temp.add(each);
}
}
int size = temp.size();
if(size == 1){
temp.poll().toShow();
KickView.this.invalidate();
}else if(size > 1){
for(int i=0; i<random.nextInt(2) + 1; i++){
temp.remove(random.nextInt(temp.size())).toShow();
}
KickView.this.invalidate();
}KickView.this.postDelayed(this, progress + random.nextInt(500));
progress -= 10;
}
};