public static interface Translate.DeltaResolver
| Modifier and Type | Method and Description |
|---|---|
float |
resolveDeltaX(ViewGroup sceneRoot,
View view,
int valueRelativity,
float value)
Resolves proper delta value for translate animation along X axis for the specified parameters.
|
float |
resolveDeltaY(ViewGroup sceneRoot,
View view,
int valueRelativity,
float value)
Resolves proper delta value for translate animation along Y axis for the specified parameters.
|
float resolveDeltaX(@NonNull ViewGroup sceneRoot, @NonNull View view, int valueRelativity, float value)
Implementations should always return absolute delta value in pixels calculated from the given value depending on the specified relativity.
sceneRoot - Root view of the scene containing the target view in its view
hierarchy for which the translate animation will be played.view - The target view for which will be the translate animation played.valueRelativity - Relativity type describing how the given value should
be treated.value - Either absolute or relative delta value used to properly calculate
the absolute delta depending on the specified valueRelativity.float resolveDeltaY(@NonNull ViewGroup sceneRoot, @NonNull View view, int valueRelativity, float value)
Implementations should always return absolute delta value in pixels calculated from the given value depending on the specified relativity.
sceneRoot - Root view of the scene containing the target view in its view
hierarchy for which the translate animation will be played.view - The target view for which will be the translate animation played.valueRelativity - Relativity type describing how the given value should
be treated.value - Either absolute or relative delta value used to properly calculate
the absolute delta depending on the specified valueRelativity.