63 lines
1.4 KiB
Java
63 lines
1.4 KiB
Java
package androidx.core.widget;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.Canvas;
|
|
import android.widget.EdgeEffect;
|
|
import androidx.annotation.NonNull;
|
|
public final class EdgeEffectCompat {
|
|
private EdgeEffect mEdgeEffect;
|
|
|
|
@Deprecated
|
|
public EdgeEffectCompat(Context context) {
|
|
this.mEdgeEffect = new EdgeEffect(context);
|
|
}
|
|
|
|
public static void onPull(@NonNull EdgeEffect edgeEffect, float f, float f2) {
|
|
edgeEffect.onPull(f, f2);
|
|
}
|
|
|
|
@Deprecated
|
|
public boolean draw(Canvas canvas) {
|
|
return this.mEdgeEffect.draw(canvas);
|
|
}
|
|
|
|
@Deprecated
|
|
public void finish() {
|
|
this.mEdgeEffect.finish();
|
|
}
|
|
|
|
@Deprecated
|
|
public boolean isFinished() {
|
|
return this.mEdgeEffect.isFinished();
|
|
}
|
|
|
|
@Deprecated
|
|
public boolean onAbsorb(int i) {
|
|
this.mEdgeEffect.onAbsorb(i);
|
|
return true;
|
|
}
|
|
|
|
@Deprecated
|
|
public boolean onPull(float f) {
|
|
this.mEdgeEffect.onPull(f);
|
|
return true;
|
|
}
|
|
|
|
@Deprecated
|
|
public boolean onPull(float f, float f2) {
|
|
onPull(this.mEdgeEffect, f, f2);
|
|
return true;
|
|
}
|
|
|
|
@Deprecated
|
|
public boolean onRelease() {
|
|
this.mEdgeEffect.onRelease();
|
|
return this.mEdgeEffect.isFinished();
|
|
}
|
|
|
|
@Deprecated
|
|
public void setSize(int i, int i2) {
|
|
this.mEdgeEffect.setSize(i, i2);
|
|
}
|
|
}
|