Package 

Class LayoutAnimationController


  • @NotThreadSafe() 
    public class LayoutAnimationController
    
                        

    Class 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
      void initializeFromConfig(@Nullable() ReadableMap config, Callback completionCallback)
      void reset()
      boolean shouldAnimateLayout(View viewToAnimate)
      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.
      void deleteView(View view, LayoutAnimationListener listener) Animate a view deletion using the layout animation configuration supplied duringinitialization.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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 of
        x - the new X position for the view
        y - the new Y position for the view
        width - the new width value for the view
        height - 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.