public abstract class LayerTransformer
extends java.lang.Object
| Constructor and Description |
|---|
LayerTransformer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
internalTransform(android.view.View layerView,
float previewProgress,
float layerProgress,
int screenSide)
Internal method to expose necessary properties for internal transformers to operate.
|
protected void |
onMeasure(android.view.View layerView,
int screenSide)
This method is executed when the layer finish measurement.
|
abstract void |
transform(android.view.View layerView,
float previewProgress,
float layerProgress)
Apply a property transformation to layer based on its scrolling state for the total size of the layer
and preview mode.
|
protected void onMeasure(android.view.View layerView,
int screenSide)
layerView - A reference to the layer itself.screenSide - Side of the screen where the layer is stuck toprotected void internalTransform(android.view.View layerView,
float previewProgress,
float layerProgress,
int screenSide)
layerView - A reference to the layer itself.previewProgress - The progress of the layer relative to the preview mode [0 - 1]. 0 fixed if no previewlayerProgress - The progress of the layer relative to its total size [0 - 1]screenSide - Side of the screen where the layer is stuck topublic abstract void transform(android.view.View layerView,
float previewProgress,
float layerProgress)
layerView - A reference to the layer itself.previewProgress - The progress of the layer relative to the preview mode [0 - 1]. 0 fixed if no previewlayerProgress - The progress of the layer relative to its total size [0 - 1]