Search in sources :

Example 1 with ViewPropertyAnimator

use of com.nineoldandroids.view.ViewPropertyAnimator in project SunDay by iQuick.

the class JazzyHelper method doJazzinessImpl.

private void doJazzinessImpl(View item, int position, int scrollDirection) {
    ViewPropertyAnimator animator = ViewPropertyAnimator.animate(item).setDuration(DURATION).setInterpolator(new AccelerateDecelerateInterpolator());
    scrollDirection = scrollDirection > 0 ? 1 : -1;
    mTransitionEffect.initView(item, position, scrollDirection);
    mTransitionEffect.setupAnimation(item, position, scrollDirection, animator);
    animator.start();
}
Also used : AccelerateDecelerateInterpolator(android.view.animation.AccelerateDecelerateInterpolator) ViewPropertyAnimator(com.nineoldandroids.view.ViewPropertyAnimator)

Aggregations

AccelerateDecelerateInterpolator (android.view.animation.AccelerateDecelerateInterpolator)1 ViewPropertyAnimator (com.nineoldandroids.view.ViewPropertyAnimator)1