是否可以同时生成 2 个动画绘图?
我用线程尝试过:
Thread t1 = new Thread(){
public void run(){
runOnUiThread(new Runnable() {
public void run()
{
animation1.start();
}
}};
Thread t2 = new Thread(){
public void run(){
runOnUiThread(new Runnable() {
public void run()
{
animation2.start();
}
}};
t1.start();
t2.start();
这行不通。我从 xml 文件加载动画资源。