public class WelcomeUtils
extends java.lang.Object
Constructor and Description |
---|
WelcomeUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
applyParallaxEffect(android.view.View view,
boolean recursive,
int offsetPixels,
float startParallaxFactor,
float parallaxInterval)
Apply a parallax effect to a View/ViewGroup
|
static java.lang.String |
getKey(java.lang.Class<? extends WelcomeActivity> activityClass) |
public static java.lang.String getKey(java.lang.Class<? extends WelcomeActivity> activityClass)
public static void applyParallaxEffect(android.view.View view, boolean recursive, int offsetPixels, float startParallaxFactor, float parallaxInterval)
view
- A View or ViewGrouprecursive
- Applies if view
is a ViewGroup. If true, this will recursively go through any child ViewGroups and apply the effect to their children.
If false, only view
's immediate children will move in the parallax effectoffsetPixels
- The current pixel offset for the page view
is on.startParallaxFactor
- The speed at which the first child should move. Negative values for slower, positive for faster.parallaxInterval
- The difference in speed between the children.