public class ABaseTransformer
| Modifier and Type | Method and Description |
|---|---|
boolean |
hideOffscreenPages()
If the position offset of a fragment is less than negative one or greater than one, returning true will set the fragment alpha to 0f. Otherwise fragment alpha is always defaulted to 1f.
|
boolean |
isPagingEnabled()
Indicates if the default animations of the view pager should be used.
|
static float |
min()
Same as
Math#min(double, double) without double casting, zero closest to infinity handling, or NaN support. |
void |
onPostTransform()
Called each
after . |
void |
onPreTransform()
Called each
before {. The default implementation attempts to reset all view properties. This is useful when toggling transforms that do not modify the same page properties. For instance changing from a transformation that applies rotation to a transformation that fades can inadvertently leave a fragment stuck with a rotation or with some degree of applied alpha. |
void |
onTransform()
Called each
. |
void |
transformPage()
Apply a property transformation to the given page. For most use cases, this method should not be overridden. Instead use
to perform typical transformations. |
public void onTransform()
Called each .ABaseTransformer.transformPage
ABaseTransformer.transformPagepublic void transformPage()
Apply a property transformation to the given page. For most use cases, this method should not be overridden. Instead use to perform typical transformations.ABaseTransformer.transformPage
ABaseTransformer.transformPagepublic boolean hideOffscreenPages()
If the position offset of a fragment is less than negative one or greater than one, returning true will set the fragment alpha to 0f. Otherwise fragment alpha is always defaulted to 1f.
public boolean isPagingEnabled()
Indicates if the default animations of the view pager should be used.
public void onPreTransform()
Called each before {ABaseTransformer.transformPage. ABaseTransformer.onTransform
The default implementation attempts to reset all view properties. This is useful when toggling transforms that do not modify the same page properties. For instance changing from a transformation that applies rotation to a transformation that fades can inadvertently leave a fragment stuck with a rotation or with some degree of applied alpha.
public void onPostTransform()
Called each after ABaseTransformer.transformPage.ABaseTransformer.onTransform
public static float min()
Same as Math#min(double, double) without double casting, zero closest to infinity handling, or NaN support.