public class CarouselZoomPostLayoutListener extends java.lang.Object implements CarouselLayoutManager.PostLayoutListener
CarouselLayoutManager.PostLayoutListener that makes interesting scaling of items. | Constructor and Description |
|---|
CarouselZoomPostLayoutListener() |
| Modifier and Type | Method and Description |
|---|---|
ItemTransformation |
transformChild(android.view.View child,
float itemPositionToCenterDiff,
int orientation)
Called after child layout finished.
|
public ItemTransformation transformChild(android.view.View child, float itemPositionToCenterDiff, int orientation)
CarouselLayoutManager.PostLayoutListenertransformChild in interface CarouselLayoutManager.PostLayoutListenerchild - view that was layoutitemPositionToCenterDiff - view center line difference to layout center. if > 0 then this item is bellow layout center line, else if notorientation - layoutManager orientation #getLayoutDirection()