Changed some animation times

This commit is contained in:
Karim Abou Zeid 2015-12-22 17:00:55 +01:00
commit aba7ded001
3 changed files with 7 additions and 8 deletions

View file

@ -46,7 +46,7 @@ public class ViewUtil {
return createColorAnimator(v, "textColor", startColor, endColor);
}
public final static int DEFAULT_COLOR_ANIMATION_DURATION = 500;
public final static int PHONOGRAPH_ANIM_TIME = 1000;
private static Animator createColorAnimator(Object target, String propertyName, int startColor, int endColor) {
ObjectAnimator animator;
@ -60,7 +60,7 @@ public class ViewUtil {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
animator.setInterpolator(new PathInterpolator(0.4f, 0f, 1f, 1f));
}
animator.setDuration(DEFAULT_COLOR_ANIMATION_DURATION);
animator.setDuration(PHONOGRAPH_ANIM_TIME);
return animator;
}