本文整理了Java中com.nineoldandroids.animation.ObjectAnimator.setRepeatMode()
方法的一些代码示例,展示了ObjectAnimator.setRepeatMode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ObjectAnimator.setRepeatMode()
方法的具体详情如下:
包路径:com.nineoldandroids.animation.ObjectAnimator
类名称:ObjectAnimator
方法名:setRepeatMode
暂无
代码示例来源:origin: SMSTicket/sms-ticket
animator.setDuration(1300);
animator.setInterpolator(new LinearInterpolator());
animator.setRepeatMode(ValueAnimator.RESTART);
代码示例来源:origin: chiemy/LoadingImageView
private void initAnim() {
stopAnim();
//animator = ObjectAnimator.ofInt(this, "maskHeight", 0, imageHeight);
animator = ObjectAnimator.ofInt(clipDrawable, "level", 0, 10000);
animator.setDuration(animDuration);
animator.setRepeatCount(ValueAnimator.INFINITE);
animator.setRepeatMode(ValueAnimator.RESTART);
animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator animation) {
invalidate();
}
});
if(autoStart){
animator.start();
}
}
代码示例来源:origin: NEYouFan/ht-refreshrecyclerview
@Override
public void onRefreshing() {
mRefreshLoadView.setPivotX(0.5f * mRefreshLoadView.getMeasuredWidth());
mRefreshLoadView.setPivotY(0.5f * mRefreshLoadView.getMeasuredHeight());
if (animator == null) {
animator = ObjectAnimator.ofFloat(mRefreshLoadView, "rotation", 0.0f, 360.0f);
animator.setDuration(1000);
animator.setRepeatCount(ValueAnimator.INFINITE);
animator.setRepeatMode(ValueAnimator.RESTART);
}
if (animator.isRunning()) animator.cancel();
animator.start();
}
代码示例来源:origin: NEYouFan/ht-refreshrecyclerview
@Override
public void onRefreshing() {
mRefreshLoadView.setPivotX(0.5f * mRefreshLoadView.getMeasuredWidth());
mRefreshLoadView.setPivotY(0.5f * mRefreshLoadView.getMeasuredHeight());
if (animator == null) {
animator = ObjectAnimator.ofFloat(mRefreshLoadView, "rotation", 0.0f, 360.0f);
animator.setDuration(1000);
animator.setRepeatCount(ValueAnimator.INFINITE);
animator.setRepeatMode(ValueAnimator.RESTART);
}
if (animator.isRunning()) animator.cancel();
animator.start();
}
代码示例来源:origin: NEYouFan/ht-refreshrecyclerview
@Override
public void onRefreshing() {
mRefreshLoadView.setPivotX(0.5f * mRefreshLoadView.getMeasuredWidth());
mRefreshLoadView.setPivotY(0.5f * mRefreshLoadView.getMeasuredHeight());
if (animator == null) {
animator = ObjectAnimator.ofFloat(mRefreshLoadView, "rotation", 0.0f, 360.0f);
animator.setDuration(1000);
animator.setRepeatCount(ValueAnimator.INFINITE);
animator.setRepeatMode(ValueAnimator.RESTART);
}
if (animator.isRunning()) animator.cancel();
animator.start();
}
代码示例来源:origin: NEYouFan/ht-refreshrecyclerview
@Override
public void onRefreshing() {
mRefreshLoadView.setPivotX(0.5f * mRefreshLoadView.getMeasuredWidth());
mRefreshLoadView.setPivotY(0.5f * mRefreshLoadView.getMeasuredHeight());
if (animator == null) {
animator = ObjectAnimator.ofFloat(mRefreshLoadView, "rotation", 0.0f, 360.0f);
animator.setDuration(1000);
animator.setRepeatCount(ValueAnimator.INFINITE);
animator.setRepeatMode(ValueAnimator.RESTART);
}
if (animator.isRunning()) animator.cancel();
animator.start();
}
内容来源于网络,如有侵权,请联系作者删除!