本文整理了Java中android.view.animation.Animation.setStartTime()
方法的一些代码示例,展示了Animation.setStartTime()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Animation.setStartTime()
方法的具体详情如下:
包路径:android.view.animation.Animation
类名称:Animation
方法名:setStartTime
暂无
代码示例来源:origin: androidquery/androidquery
anim.setStartTime(AnimationUtils.currentAnimationTimeMillis());
iv.startAnimation(anim);
}else{
代码示例来源:origin: nanchen2251/RxJava2Examples
if (targetRotateY != UNSPECIFIED_FLOAT) child.setRotationY(floatEvaluator(mStartRotateY, targetRotateY, percent));
} else {
mAnimation.setStartTime(0);
mAnimation.restrictDuration(100);
Transformation transformation = new Transformation();
代码示例来源:origin: Tencent/RapidView
public void run(AnimationObject object, Object animation, String value){
((Animation)animation).setStartTime(Long.parseLong(value));
}
}
代码示例来源:origin: stackoverflow.com
public void flash(int delay,int time) {
Animation animation = AnimationUtils.loadAnimation(this.getContext(),R.anim.gametextbuttonrotation);
animation.setDuration(time);
animation.setStartTime(delay);
this.setAnimation(animation);
}
代码示例来源:origin: zoff99/ToxAndroidRefImpl
public static void animateIn(final @NonNull View view, final @NonNull Animation animation)
{
if (view.getVisibility() == View.VISIBLE)
{
return;
}
view.clearAnimation();
animation.reset();
animation.setStartTime(0);
view.setVisibility(View.VISIBLE);
view.startAnimation(animation);
}
代码示例来源:origin: zoff99/ToxAndroidRefImpl
animation.setStartTime(0);
animation.setAnimationListener(new Animation.AnimationListener()
代码示例来源:origin: stackoverflow.com
tAnim.setStartTime(0);
tAnim.setDuration(3000);
tAnim.setStartOffset(0);
Animation bAnim = new AlphaAnimation(1.0f, 0.0f);
bAnim.setStartTime(tAnim.getDuration());
bAnim.setDuration(300);
bAnim.setStartOffset(30);
代码示例来源:origin: com.googlecode.android-query/android-query
anim.setStartTime(AnimationUtils.currentAnimationTimeMillis());
iv.startAnimation(anim);
}else{
代码示例来源:origin: nanchen2251/WaveSideBar
if (targetRotateY != UNSPECIFIED_FLOAT) child.setRotationY(floatEvaluator(mStartRotateY, targetRotateY, percent));
} else {
mAnimation.setStartTime(0);
mAnimation.restrictDuration(100);
Transformation transformation = new Transformation();
代码示例来源:origin: nanchen2251/CoordinatorAppBarDemo
if (targetRotateY != UNSPECIFIED_FLOAT) child.setRotationY(floatEvaluator(mStartRotateY, targetRotateY, percent));
} else {
mAnimation.setStartTime(0);
mAnimation.restrictDuration(100);
Transformation transformation = new Transformation();
代码示例来源:origin: stackoverflow.com
iv1 = (ImageView) findViewById(R.id.imageView1); //first image
iv2 = (ImageView) findViewById(R.id.imageView2); // second image
Animation iv1anim = AnimationUtils.loadAnimation(this, R.anim.abc_slide_out_bottom);
Animation iv2anim = AnimationUtils.loadAnimation(this, R.anim.abc_slide_in_bottom);
// the animations are in-built
iv1.setAnimation(iv1anim); // setting the respective anims
iv2.setAnimation(iv2anim);// setting the respective anims
iv1anim.setStartTime(0); // it will start quickly
iv2anim.setStartOffset(iv1anim.getDuration());// its going to delay,for the duration
// of the first image. in millieseconds,so there will be no seconds wait
final AnimationSet anim = new AnimationSet(false);
anim.addAnimation(iv1anim); // the rest is cheese
anim.addAnimation(iv2anim);
anim.startNow();
内容来源于网络,如有侵权,请联系作者删除!