@Override
 protected Animator getAnimator(final ViewGroup parent, final View view) {
   return ObjectAnimator.ofFloat(view, TRANSLATION_X, 0 - parent.getWidth(), 0);
 }
Пример #2
0
 @Override
 public Animator[] getAnimators(final ViewGroup parent, final View view) {
   ObjectAnimator scaleX = ObjectAnimator.ofFloat(view, SCALE_X, mScaleFrom, 1f);
   ObjectAnimator scaleY = ObjectAnimator.ofFloat(view, SCALE_Y, mScaleFrom, 1f);
   return new ObjectAnimator[] {scaleX, scaleY};
 }