25 lines
754 B
Java
25 lines
754 B
Java
package com.chad.library.adapter.base.animation;
|
|
|
|
import android.animation.Animator;
|
|
import android.animation.ObjectAnimator;
|
|
import android.view.View;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class ScaleInAnimation implements BaseAnimation {
|
|
private static final float DEFAULT_SCALE_FROM = 0.5f;
|
|
private final float mFrom;
|
|
|
|
public ScaleInAnimation() {
|
|
this(DEFAULT_SCALE_FROM);
|
|
}
|
|
|
|
@Override // com.chad.library.adapter.base.animation.BaseAnimation
|
|
public Animator[] getAnimators(View view) {
|
|
return new ObjectAnimator[]{ObjectAnimator.ofFloat(view, "scaleX", this.mFrom, 1.0f), ObjectAnimator.ofFloat(view, "scaleY", this.mFrom, 1.0f)};
|
|
}
|
|
|
|
public ScaleInAnimation(float f) {
|
|
this.mFrom = f;
|
|
}
|
|
}
|