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 some stubs needed because of previous commits
Since we now call draw() on View subclasses, we reach some new codepaths which need new stubs
This commit is contained in:
@@ -33,4 +33,6 @@ public class ObjectAnimator extends ValueAnimator {
|
|||||||
|
|
||||||
public void setAutoCancel(boolean autoCancel) {}
|
public void setAutoCancel(boolean autoCancel) {}
|
||||||
|
|
||||||
|
public void setPropertyName(String propertyName) {}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
7
src/api-impl/android/animation/PropertyValuesHolder.java
Normal file
7
src/api-impl/android/animation/PropertyValuesHolder.java
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
package android.animation;
|
||||||
|
|
||||||
|
public class PropertyValuesHolder{
|
||||||
|
public static PropertyValuesHolder ofFloat(String propertyName, float... values) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,7 +1,5 @@
|
|||||||
package android.animation;
|
package android.animation;
|
||||||
|
|
||||||
final class PropertyValuesHolder{}
|
|
||||||
|
|
||||||
public class ValueAnimator extends Animator {
|
public class ValueAnimator extends Animator {
|
||||||
|
|
||||||
public static ValueAnimator ofFloat(float... values) {
|
public static ValueAnimator ofFloat(float... values) {
|
||||||
@@ -43,6 +41,7 @@ public class ValueAnimator extends Animator {
|
|||||||
public void setRepeatMode(int value) {}
|
public void setRepeatMode(int value) {}
|
||||||
public void cancel() {}
|
public void cancel() {}
|
||||||
public void setEvaluator(TypeEvaluator evaluator) {}
|
public void setEvaluator(TypeEvaluator evaluator) {}
|
||||||
|
public void setStartDelay(long startDelay) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementors of this interface can add themselves as update listeners
|
* Implementors of this interface can add themselves as update listeners
|
||||||
|
|||||||
@@ -252,6 +252,10 @@ public class Drawable {
|
|||||||
|
|
||||||
protected void onBoundsChange(Rect bounds) {}
|
protected void onBoundsChange(Rect bounds) {}
|
||||||
|
|
||||||
|
public void setDither(boolean dither) {}
|
||||||
|
|
||||||
|
public void setAutoMirrored(boolean mirrored) {}
|
||||||
|
|
||||||
protected static native long native_paintable_from_path(String path);
|
protected static native long native_paintable_from_path(String path);
|
||||||
protected native long native_constructor();
|
protected native long native_constructor();
|
||||||
protected native void native_invalidate(long paintable);
|
protected native void native_invalidate(long paintable);
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
package android.text;
|
package android.text;
|
||||||
|
|
||||||
|
import android.graphics.Canvas;
|
||||||
|
|
||||||
public class Layout {
|
public class Layout {
|
||||||
|
|
||||||
public enum Alignment {
|
public enum Alignment {
|
||||||
@@ -23,4 +25,6 @@ public class Layout {
|
|||||||
public int getWidth() {return 10;}
|
public int getWidth() {return 10;}
|
||||||
|
|
||||||
public int getHeight() {return 10;}
|
public int getHeight() {return 10;}
|
||||||
|
|
||||||
|
public void draw(Canvas canvas) {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,4 +8,8 @@ public class AnimationUtils {
|
|||||||
public static long currentAnimationTimeMillis() {
|
public static long currentAnimationTimeMillis() {
|
||||||
return System.currentTimeMillis();
|
return System.currentTimeMillis();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Interpolator loadInterpolator(Context context, int dummy) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ hax_jar = jar('hax', [
|
|||||||
'android/animation/ArgbEvaluator.java',
|
'android/animation/ArgbEvaluator.java',
|
||||||
'android/animation/LayoutTransition.java',
|
'android/animation/LayoutTransition.java',
|
||||||
'android/animation/ObjectAnimator.java',
|
'android/animation/ObjectAnimator.java',
|
||||||
|
'android/animation/PropertyValuesHolder.java',
|
||||||
'android/animation/StateListAnimator.java',
|
'android/animation/StateListAnimator.java',
|
||||||
'android/animation/TimeInterpolator.java',
|
'android/animation/TimeInterpolator.java',
|
||||||
'android/animation/TypeEvaluator.java',
|
'android/animation/TypeEvaluator.java',
|
||||||
|
|||||||
Reference in New Issue
Block a user