public class AppearAnimationUtils extends Object implements AppearAnimationCreator<View>
Modifier and Type | Class and Description |
---|---|
class |
AppearAnimationUtils.AppearAnimationProperties |
static interface |
AppearAnimationUtils.RowTranslationScaler |
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_APPEAR_DURATION |
protected boolean |
mAppearing |
protected float |
mDelayScale |
protected AppearAnimationUtils.RowTranslationScaler |
mRowTranslationScaler |
Constructor and Description |
---|
AppearAnimationUtils(Context ctx) |
AppearAnimationUtils(Context ctx,
long duration,
float translationScaleFactor,
float delayScaleFactor,
Interpolator interpolator) |
Modifier and Type | Method and Description |
---|---|
protected long |
calculateDelay(int row,
int col) |
void |
createAnimation(View view,
long delay,
long duration,
float translationY,
boolean appearing,
Interpolator interpolator,
Runnable endRunnable) |
Interpolator |
getInterpolator() |
float |
getStartTranslation() |
<T> void |
startAnimation(T[] objects,
Runnable finishListener,
AppearAnimationCreator<T> creator) |
void |
startAnimation(View[] objects,
Runnable finishListener) |
<T> void |
startAnimation2d(T[][] objects,
Runnable finishListener,
AppearAnimationCreator<T> creator) |
void |
startAnimation2d(View[][] objects,
Runnable finishListener) |
static void |
startTranslationYAnimation(View view,
long delay,
long duration,
float endTranslationY,
Interpolator interpolator) |
public static final long DEFAULT_APPEAR_DURATION
protected final float mDelayScale
protected AppearAnimationUtils.RowTranslationScaler mRowTranslationScaler
protected boolean mAppearing
public AppearAnimationUtils(Context ctx)
public AppearAnimationUtils(Context ctx, long duration, float translationScaleFactor, float delayScaleFactor, Interpolator interpolator)
public <T> void startAnimation2d(T[][] objects, Runnable finishListener, AppearAnimationCreator<T> creator)
public <T> void startAnimation(T[] objects, Runnable finishListener, AppearAnimationCreator<T> creator)
protected long calculateDelay(int row, int col)
public Interpolator getInterpolator()
public float getStartTranslation()
public void createAnimation(View view, long delay, long duration, float translationY, boolean appearing, Interpolator interpolator, Runnable endRunnable)
createAnimation
in interface AppearAnimationCreator<View>
public static void startTranslationYAnimation(View view, long delay, long duration, float endTranslationY, Interpolator interpolator)