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
api-impl: misc fixes and additions to make Telegram launch
This commit is contained in:
@@ -15,4 +15,8 @@ public class TextureView extends View {
|
||||
|
||||
public interface SurfaceTextureListener {}
|
||||
|
||||
public void setSurfaceTextureListener(SurfaceTextureListener surfaceTextureListener) {}
|
||||
|
||||
public void setOpaque(boolean opaque) {}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,17 @@
|
||||
package android.view.animation;
|
||||
|
||||
public class OvershootInterpolator {
|
||||
import android.animation.TimeInterpolator;
|
||||
|
||||
public OvershootInterpolator(float overshoot) {}
|
||||
public class OvershootInterpolator implements TimeInterpolator {
|
||||
|
||||
private float overshoot;
|
||||
|
||||
public OvershootInterpolator(float overshoot) {
|
||||
this.overshoot = overshoot;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getInterpolation(float input) {
|
||||
return (input-1) * (input-1) * ((overshoot + 1) * (input-1) + overshoot) + 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user