我使用了SurfaceView绘图,但是在Run()方法中移除ArrayList 中的元素怎么游戏界面就卡住了,怎么回事????还有使用AlterDialog 也是出现卡住情况,直接就死机了
for( Yun image:(List)yunList){
canvas.drawBitmap(image.getBitmap(), image.getX(),image.getY(), p1);
if (image.getX()<=image.getWidth())
{
yunList.remove(image);
}
}