Fix jumps in the beginning of animations

If the first draw frame of an animation is
expensive, which it often is, it causes a big
jump. Added a helper class which automatically
adjusts the animation start time if the first
frame is more than 16ms.

Change-Id: I100edbc41c2abe930a32d6bcf0a782ea9735f7f9
This commit is contained in:
Michael Jurka
2013-03-13 12:55:46 +01:00
parent b8f5c401de
commit f1ad608c28
13 changed files with 184 additions and 77 deletions

View File

@@ -77,7 +77,6 @@ public class SearchDropTargetBar extends FrameLayout implements DragController.D
// Enable the hw layers before the animation starts (will be disabled in the onAnimationEnd
// callback below)
v.setLayerType(View.LAYER_TYPE_HARDWARE, null);
v.buildLayer();
}
private void setupAnimation(ObjectAnimator anim, final View v) {