Stay organized with collections
Save and categorize content based on your preferences.
Interpolator
public
interface
Interpolator
implements
TimeInterpolator
android.view.animation.Interpolator
|
Known indirect subclasses
AccelerateDecelerateInterpolator, AccelerateInterpolator, AnticipateInterpolator, AnticipateOvershootInterpolator, BaseInterpolator, BounceInterpolator, CycleInterpolator, DecelerateInterpolator, LinearInterpolator, OvershootInterpolator, PathInterpolator
|
An interpolator defines the rate of change of an animation. This allows
the basic animation effects (alpha, scale, translate, rotate) to be
accelerated, decelerated, repeated, etc.
Summary
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# Interpolator\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Inherited Methods](#inhmethods) \n\nInterpolator\n============\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/view/animation/Interpolator \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\n\n\ninterface\nInterpolator\n`\n\n\n`\n\n\nimplements\n\n`[TimeInterpolator](/reference/android/animation/TimeInterpolator)`\n\n\n`\n\n|-------------------------------------|\n| android.view.animation.Interpolator |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [AccelerateDecelerateInterpolator](/reference/android/view/animation/AccelerateDecelerateInterpolator), [AccelerateInterpolator](/reference/android/view/animation/AccelerateInterpolator), [AnticipateInterpolator](/reference/android/view/animation/AnticipateInterpolator), [AnticipateOvershootInterpolator](/reference/android/view/animation/AnticipateOvershootInterpolator), [BaseInterpolator](/reference/android/view/animation/BaseInterpolator), [BounceInterpolator](/reference/android/view/animation/BounceInterpolator), [CycleInterpolator](/reference/android/view/animation/CycleInterpolator), [DecelerateInterpolator](/reference/android/view/animation/DecelerateInterpolator), [LinearInterpolator](/reference/android/view/animation/LinearInterpolator), [OvershootInterpolator](/reference/android/view/animation/OvershootInterpolator), [PathInterpolator](/reference/android/view/animation/PathInterpolator) |--------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------| | [AccelerateDecelerateInterpolator](/reference/android/view/animation/AccelerateDecelerateInterpolator) | An interpolator where the rate of change starts and ends slowly but accelerates through the middle. | | [AccelerateInterpolator](/reference/android/view/animation/AccelerateInterpolator) | An interpolator where the rate of change starts out slowly and and then accelerates. | | [AnticipateInterpolator](/reference/android/view/animation/AnticipateInterpolator) | An interpolator where the change starts backward then flings forward. | | [AnticipateOvershootInterpolator](/reference/android/view/animation/AnticipateOvershootInterpolator) | An interpolator where the change starts backward then flings forward and overshoots the target value and finally goes back to the final value. | | [BaseInterpolator](/reference/android/view/animation/BaseInterpolator) | An abstract class which is extended by default interpolators. | | [BounceInterpolator](/reference/android/view/animation/BounceInterpolator) | An interpolator where the change bounces at the end. | | [CycleInterpolator](/reference/android/view/animation/CycleInterpolator) | Repeats the animation for a specified number of cycles. | | [DecelerateInterpolator](/reference/android/view/animation/DecelerateInterpolator) | An interpolator where the rate of change starts out quickly and and then decelerates. | | [LinearInterpolator](/reference/android/view/animation/LinearInterpolator) | An interpolator where the rate of change is constant | | [OvershootInterpolator](/reference/android/view/animation/OvershootInterpolator) | An interpolator where the change flings forward and overshoots the last value then comes back. | | [PathInterpolator](/reference/android/view/animation/PathInterpolator) | An interpolator that can traverse a Path that extends from `Point` `(0, 0)` to `(1, 1)`. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn interpolator defines the rate of change of an animation. This allows\nthe basic animation effects (alpha, scale, translate, rotate) to be\naccelerated, decelerated, repeated, etc.\n\nSummary\n-------\n\n| ### Inherited methods |\n|-----------------------|---|\n| From interface ` `[android.animation.TimeInterpolator](/reference/android/animation/TimeInterpolator)` ` |-------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract float` | ` `[getInterpolation](/reference/android/animation/TimeInterpolator#getInterpolation(float))`(float input) ` Maps a value representing the elapsed fraction of an animation to a value that represents the interpolated fraction. | ||"]]