答案 0 :(得分:0)
使用Runnable
使用Thread.sleep(10);
设置drawable图像。
new Thread(new Runnable() {
@Override
public void run() {
stuff();
finish();
}
}).start();
和
public void stuff(){
for (int i=0;i<50;i+=5){ //put i< the number of images you have
try { //for your animation.
Thread.sleep(10);
//set your image here.
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}