FragmentTransactionExtended
FragmentTransactionExtended is a library which provide us a set of custom animations between fragments.
FragmentTransactionExtended is a library which provide us a set of custom animations between fragments. FragmentTransaction only accepts some simple animations (TRANSIT_FRAGMENT_CLOSE, TRANSIT_FRAGMENT_FADE, TRANSIT_FRAGMENT_OPEN...).
List of animations added:
SCALEX
SCALEY
SCALEXY
FADE
FLIP_HORIZONTAL
FLIP_VERTICAL
SLIDE_VERTICAL
SLIDE_HORIZONTAL
SLIDE_HORIZONTAL_PUSH_TOP
SLIDE_VERTICAL_PUSH_LEFT
GLIDE
SLIDING
STACK
CUBE
ROTATE_DOWN
ROTATE_UP
ACCORDION
TABLE_HORIZONTAL
TABLE_VERTICAL
ZOOM_FROM_LEFT_CORNER
ZOOM_FROM_RIGHT_CORNER
ZOOM_SLIDE_HORIZONTAL
ZOOM_SLIDE_VERTICAL
Because FragmentTransaction.setCustomAnimations
needs to use ObjectAnimator
in XML and the animations of this library needs some fractional values is necesary to extends the fragment container from SlidingRelativeLayout
, this class contains the necessary getters and setters.
The container of the fragments must extends from SlidingRelativeLayout
like the example
You need to declare in your activity manifest if you need to manage change orientations: