Initial commit

This commit is contained in:
2025-05-13 19:24:51 +02:00
commit a950f49678
10604 changed files with 932663 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
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 AlphaInAnimation implements BaseAnimation {
private static final float DEFAULT_ALPHA_FROM = 0.0f;
private final float mFrom;
public AlphaInAnimation() {
this(0.0f);
}
@Override // com.chad.library.adapter.base.animation.BaseAnimation
public Animator[] getAnimators(View view) {
return new Animator[]{ObjectAnimator.ofFloat(view, "alpha", this.mFrom, 1.0f)};
}
public AlphaInAnimation(float f) {
this.mFrom = f;
}
}

View File

@@ -0,0 +1,9 @@
package com.chad.library.adapter.base.animation;
import android.animation.Animator;
import android.view.View;
/* loaded from: classes.dex */
public interface BaseAnimation {
Animator[] getAnimators(View view);
}

View File

@@ -0,0 +1,24 @@
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;
}
}

View File

@@ -0,0 +1,13 @@
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 SlideInBottomAnimation implements BaseAnimation {
@Override // com.chad.library.adapter.base.animation.BaseAnimation
public Animator[] getAnimators(View view) {
return new Animator[]{ObjectAnimator.ofFloat(view, "translationY", view.getMeasuredHeight(), 0.0f)};
}
}

View File

@@ -0,0 +1,13 @@
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 SlideInLeftAnimation implements BaseAnimation {
@Override // com.chad.library.adapter.base.animation.BaseAnimation
public Animator[] getAnimators(View view) {
return new Animator[]{ObjectAnimator.ofFloat(view, "translationX", -view.getRootView().getWidth(), 0.0f)};
}
}

View File

@@ -0,0 +1,13 @@
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 SlideInRightAnimation implements BaseAnimation {
@Override // com.chad.library.adapter.base.animation.BaseAnimation
public Animator[] getAnimators(View view) {
return new Animator[]{ObjectAnimator.ofFloat(view, "translationX", view.getRootView().getWidth(), 0.0f)};
}
}