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 by android material library
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
package android.view.animation;
|
||||
|
||||
public class AccelerateDecelerateInterpolator {
|
||||
|
||||
}
|
||||
@@ -2,4 +2,12 @@ package android.view.animation;
|
||||
|
||||
public class DecelerateInterpolator implements Interpolator{
|
||||
|
||||
public DecelerateInterpolator(float value) {}
|
||||
|
||||
@Override
|
||||
public float getInterpolation(float input) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'getInterpolation'");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package android.view.animation;
|
||||
|
||||
public interface Interpolator {
|
||||
import android.animation.TimeInterpolator;
|
||||
|
||||
public interface Interpolator extends TimeInterpolator {
|
||||
|
||||
}
|
||||
|
||||
12
src/api-impl/android/view/animation/LinearInterpolator.java
Normal file
12
src/api-impl/android/view/animation/LinearInterpolator.java
Normal file
@@ -0,0 +1,12 @@
|
||||
package android.view.animation;
|
||||
|
||||
import android.animation.TimeInterpolator;
|
||||
|
||||
public class LinearInterpolator implements TimeInterpolator {
|
||||
|
||||
@Override
|
||||
public float getInterpolation(float input) {
|
||||
return input;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user