解决方案 »

  1.   

    KickView.this.postDelayed(flush80ms, 80);
    KickView.this.postDelayed(flush1000ms, 1000);代码里面是什么,能看到吗?
      

  2.   

    是两个线程,高手解释下呀
    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;
    }
    };