图片延时弹出问题
为什么我设置了setStartDelay,图片还是一次性弹出,没有延时?
为什么我设置了setStartDelay,图片还是一次性弹出,没有延时?
2016-09-08
你把代码贴出来啊,
我的是这样的:
private void startAnim() {
for(int i=0;i<res.length-1;i++){
ObjectAnimator animater = ObjectAnimator.ofFloat(imageViewList.get(i),"translationY",0F,i*80);
animater.setDuration(1000);
animater.setInterpolator(new OvershootInterpolator());
animater.setStartDelay(i*300);
animater.start();
flag = false;
}
}其实我觉得不加这句代码,动画还好看一些。
举报