-
@NotThreadSafe() public class LayoutAnimationControllerClass responsible for animation layout changes, if a valid layout animation config has been supplied. If not animation is available, layout change is applied immediately instead of performing an animation.
-
-
Method Summary
Modifier and Type Method Description voidinitializeFromConfig(@Nullable() ReadableMap config, Callback completionCallback)voidreset()booleanshouldAnimateLayout(View viewToAnimate)voidapplyLayoutUpdate(View view, int x, int y, int width, int height)Update layout of given view, via immediate update or animation depending on the current batchlayout animation configuration supplied during initialization. voiddeleteView(View view, LayoutAnimationListener listener)Animate a view deletion using the layout animation configuration supplied duringinitialization. -
-
Method Detail
-
initializeFromConfig
void initializeFromConfig(@Nullable() ReadableMap config, Callback completionCallback)
-
reset
void reset()
-
shouldAnimateLayout
boolean shouldAnimateLayout(View viewToAnimate)
-
applyLayoutUpdate
void applyLayoutUpdate(View view, int x, int y, int width, int height)
Update layout of given view, via immediate update or animation depending on the current batchlayout animation configuration supplied during initialization. Handles create and updateanimations.
- Parameters:
view- the view to update layout ofx- the new X position for the viewy- the new Y position for the viewwidth- the new width value for the viewheight- the new height value for the view
-
deleteView
void deleteView(View view, LayoutAnimationListener listener)
Animate a view deletion using the layout animation configuration supplied duringinitialization.
- Parameters:
view- The view to animate.listener- Called once the animation is finished, should be used to completely remove theview.
-
-
-
-