Search in sources :

Example 1 with PropertyListBuilder

use of com.android.launcher3.anim.PropertyListBuilder in project android_packages_apps_Launcher3 by crdroidandroid.

the class Launcher method createNewAppBounceAnimation.

private ValueAnimator createNewAppBounceAnimation(View v, int i) {
    ValueAnimator bounceAnim = new PropertyListBuilder().alpha(1).scale(1).build(v).setDuration(ItemInstallQueue.NEW_SHORTCUT_BOUNCE_DURATION);
    bounceAnim.setStartDelay(i * ItemInstallQueue.NEW_SHORTCUT_STAGGER_DELAY);
    bounceAnim.setInterpolator(new OvershootInterpolator(BOUNCE_ANIMATION_TENSION));
    return bounceAnim;
}
Also used : OvershootInterpolator(android.view.animation.OvershootInterpolator) PropertyListBuilder(com.android.launcher3.anim.PropertyListBuilder) ValueAnimator(android.animation.ValueAnimator)

Aggregations

ValueAnimator (android.animation.ValueAnimator)1 OvershootInterpolator (android.view.animation.OvershootInterpolator)1 PropertyListBuilder (com.android.launcher3.anim.PropertyListBuilder)1