public class LayoutAnimationController
extends java.lang.Object
Constructor and Description |
---|
LayoutAnimationController() |
Modifier and Type | Method and Description |
---|---|
void |
applyLayoutUpdate(android.view.View view,
int x,
int y,
int width,
int height)
Update layout of given view, via immediate update or animation depending on the current batch
layout animation configuration supplied during initialization.
|
void |
deleteView(android.view.View view,
LayoutAnimationListener listener)
Animate a view deletion using the layout animation configuration supplied during initialization.
|
void |
initializeFromConfig(ReadableMap config) |
void |
reset() |
boolean |
shouldAnimateLayout(android.view.View viewToAnimate) |
public void initializeFromConfig(ReadableMap config)
public void reset()
public boolean shouldAnimateLayout(android.view.View viewToAnimate)
public void applyLayoutUpdate(android.view.View view, int x, int y, int width, int height)
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 viewpublic void deleteView(android.view.View view, LayoutAnimationListener listener)
view
- The view to animate.listener
- Called once the animation is finished, should be used to
completely remove the view.