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 APIs needed for non legacy NewPipe version
This commit is contained in:
@@ -7,5 +7,9 @@ public class AnimatorInflater {
|
||||
public static Animator loadAnimator(Context context, int resId) {
|
||||
return new ObjectAnimator();
|
||||
}
|
||||
|
||||
public static StateListAnimator loadStateListAnimator(Context context, int resId) {
|
||||
return new StateListAnimator();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -6,4 +6,10 @@ public class ObjectAnimator extends ValueAnimator {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static ObjectAnimator ofFloat(Object target, String propertyName, float... values) {
|
||||
return new ObjectAnimator();
|
||||
}
|
||||
|
||||
public ObjectAnimator setDuration(long duration) {return this;}
|
||||
|
||||
}
|
||||
|
||||
6
src/api-impl/android/animation/StateListAnimator.java
Normal file
6
src/api-impl/android/animation/StateListAnimator.java
Normal file
@@ -0,0 +1,6 @@
|
||||
package android.animation;
|
||||
|
||||
public class StateListAnimator {
|
||||
|
||||
public void addState(int[] specs, Animator animator) {}
|
||||
}
|
||||
@@ -31,6 +31,8 @@ public class ValueAnimator extends Animator {
|
||||
public void setFloatValues(float[] values) {}
|
||||
public boolean isRunning() {return false;}
|
||||
public void setIntValues(int[] values) {}
|
||||
public void setRepeatCount(int value) {}
|
||||
public void setRepeatMode(int value) {}
|
||||
|
||||
/**
|
||||
* Implementors of this interface can add themselves as update listeners
|
||||
|
||||
Reference in New Issue
Block a user