| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package android.view.animation; |
| 18 |
|
| 19 |
import android.content.Context; |
| 20 |
import android.graphics.animation.HasNativeInterpolator; |
| 21 |
import android.graphics.animation.NativeInterpolator; |
| 22 |
import android.graphics.animation.NativeInterpolatorFactory; |
| 23 |
import android.util.AttributeSet; |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
@HasNativeInterpolator |
| 29 |
public class LinearInterpolator extends BaseInterpolator implements NativeInterpolator { |
| 30 |
|
| 31 |
public LinearInterpolator() { |
| 32 |
} |
| 33 |
|
| 34 |
public LinearInterpolator(Context context, AttributeSet attrs) { |
| 35 |
} |
| 36 |
|
| 37 |
public float getInterpolation(float input) { |
| 38 |
return input; |
| 39 |
} |
| 40 |
|
| 41 |
|
| 42 |
@Override |
| 43 |
public long createNativeInterpolator() { |
| 44 |
return NativeInterpolatorFactory.createLinearInterpolator(); |
| 45 |
} |
| 46 |
} |