mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
53 lines
3.2 KiB
Java
53 lines
3.2 KiB
Java
package com.google.android.material.circularreveal;
|
|
|
|
import android.animation.Animator;
|
|
import android.animation.AnimatorListenerAdapter;
|
|
import android.animation.AnimatorSet;
|
|
import android.animation.ObjectAnimator;
|
|
import android.animation.TypeEvaluator;
|
|
import android.util.Property;
|
|
import android.view.View;
|
|
import android.view.ViewAnimationUtils;
|
|
import com.google.android.material.circularreveal.CircularRevealWidget;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class CircularRevealCompat {
|
|
private CircularRevealCompat() {
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static Animator createCircularReveal(CircularRevealWidget circularRevealWidget, float f, float f2, float f3) {
|
|
ObjectAnimator ofObject = ObjectAnimator.ofObject(circularRevealWidget, (Property<CircularRevealWidget, V>) CircularRevealWidget.CircularRevealProperty.CIRCULAR_REVEAL, (TypeEvaluator) CircularRevealWidget.CircularRevealEvaluator.CIRCULAR_REVEAL, (Object[]) new CircularRevealWidget.RevealInfo[]{new CircularRevealWidget.RevealInfo(f, f2, f3)});
|
|
CircularRevealWidget.RevealInfo revealInfo = circularRevealWidget.getRevealInfo();
|
|
if (revealInfo == null) {
|
|
throw new IllegalStateException("Caller must set a non-null RevealInfo before calling this.");
|
|
}
|
|
Animator createCircularReveal = ViewAnimationUtils.createCircularReveal((View) circularRevealWidget, (int) f, (int) f2, revealInfo.radius, f3);
|
|
AnimatorSet animatorSet = new AnimatorSet();
|
|
animatorSet.playTogether(ofObject, createCircularReveal);
|
|
return animatorSet;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public static Animator createCircularReveal(CircularRevealWidget circularRevealWidget, float f, float f2, float f3, float f4) {
|
|
ObjectAnimator ofObject = ObjectAnimator.ofObject(circularRevealWidget, (Property<CircularRevealWidget, V>) CircularRevealWidget.CircularRevealProperty.CIRCULAR_REVEAL, (TypeEvaluator) CircularRevealWidget.CircularRevealEvaluator.CIRCULAR_REVEAL, (Object[]) new CircularRevealWidget.RevealInfo[]{new CircularRevealWidget.RevealInfo(f, f2, f3), new CircularRevealWidget.RevealInfo(f, f2, f4)});
|
|
Animator createCircularReveal = ViewAnimationUtils.createCircularReveal((View) circularRevealWidget, (int) f, (int) f2, f3, f4);
|
|
AnimatorSet animatorSet = new AnimatorSet();
|
|
animatorSet.playTogether(ofObject, createCircularReveal);
|
|
return animatorSet;
|
|
}
|
|
|
|
public static Animator.AnimatorListener createCircularRevealListener(final CircularRevealWidget circularRevealWidget) {
|
|
return new AnimatorListenerAdapter() { // from class: com.google.android.material.circularreveal.CircularRevealCompat.1
|
|
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
|
public void onAnimationStart(Animator animator) {
|
|
CircularRevealWidget.this.buildCircularRevealCache();
|
|
}
|
|
|
|
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
|
public void onAnimationEnd(Animator animator) {
|
|
CircularRevealWidget.this.destroyCircularRevealCache();
|
|
}
|
|
};
|
|
}
|
|
}
|