解决方案 »
- 如何给软件设置更换皮肤,急用
- android gallery如何设置,让图片显示在靠左位置。而不是在中间
- 怎么用代码在android中实现蓝牙总是可被发现的设置?
- 在做菜单练习的时候总是不成功,点击菜单后出错,为什么呢?快崩溃了
- darwin streaming server配置存储路径出现问题
- android项目启动弹出悬浮框效果
- 安卓开发,如何在A程序中启动B程序的Service ??
- android LOG 中提示Out of memory !!!!!
- Android Bootstrap 怎么用?可以在eclipse 中使用吗?
- android软键盘弹出防止listview重新布局
- 将音频格式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;
}
};