Implementing Android Zoom Out Page Transformer for ViewFlipper

I was looking for an animation for my flash movie and found this awesome page transformer animation on the Android training page:

http://developer.android.com/training/animation/screen-slide.html

However, this is implemented using ViewPager.PageTransformer, and I am using the new ViewFlipper in my code. Has anyone figured out how to create such an animation using ViewFlipper and ObjectAnimators? Just to explain what I have done so far:

  • I have an AdapterViewFlipper that is populated with fragments depending on user interactions.
  • The user can flip these fragments by scrolling through the ViewFlipper. This is done using the GestureDetector (OnGestureListener).
  • OnFling method defines animation for ViewFlipper

The last point is where I need to define the animation, and here I am lost.

Any ideas or help ?!

+5
source share

All Articles