You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
add more API stubs for NewPipe
This commit is contained in:
@@ -6,12 +6,17 @@ public class Animator {
|
||||
public abstract void onAnimationEnd (Animator animation);
|
||||
}
|
||||
|
||||
private AnimatorListener listener;
|
||||
|
||||
public void setTarget(Object target) {}
|
||||
|
||||
public void start() {}
|
||||
public void start() {
|
||||
if (listener != null)
|
||||
listener.onAnimationEnd(this);
|
||||
}
|
||||
|
||||
public void addListener(AnimatorListener listener) {
|
||||
listener.onAnimationEnd(Animator.this);
|
||||
this.listener = listener;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package android.animation;
|
||||
|
||||
import android.util.Property;
|
||||
|
||||
public class ObjectAnimator extends ValueAnimator {
|
||||
|
||||
public String getPropertyName() {
|
||||
@@ -10,6 +12,12 @@ public class ObjectAnimator extends ValueAnimator {
|
||||
return new ObjectAnimator();
|
||||
}
|
||||
|
||||
public static <T> ObjectAnimator ofFloat(T target, Property<T, Float> property, float... values) {
|
||||
return new ObjectAnimator();
|
||||
}
|
||||
|
||||
public ObjectAnimator setDuration(long duration) {return this;}
|
||||
|
||||
public void setAutoCancel(boolean autoCancel) {}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user