Stay organized with collections
Save and categorize content based on your preferences.
Animatable
public
interface
Animatable
android.support.constraint.motion.Animatable
|
A helper interface allowing MotionLayout to directly drive custom views
Summary
Public methods
getProgress
public abstract float getProgress ()
setProgress
public abstract void setProgress (float progress)
Parameters |
progress |
float |
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,["# Animatable\n==========\n\n| This package is part of the Android [support library](/topic/libraries/support-library) which is no longer maintained. The Constraint Layout support library has been superseded by the [AndroidX Constraint\n| Layout library](/reference/androidx/constraintlayout/classes), which is part of [Jetpack](/jetpack). The `Animatable` interface has been superseded by [`androidx.constraintlayout.motion.widget.Animatable`](/reference/androidx/constraintlayout/motion/widget/Animatable). We recommend using the AndroidX libraries in all new projects. You should also consider [migrating](/jetpack/androidx/migrate) existing projects to AndroidX.\n\n\n`\npublic\n\n\ninterface\nAnimatable\n`\n\n\n`\n\n\n`\n\n|----------------------------------------------|\n| android.support.constraint.motion.Animatable |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA helper interface allowing MotionLayout to directly drive custom views\n\nSummary\n-------\n\n| ### Public methods ||\n|-------------------|-----------------------------------------------------------------------------------------------------------------|\n| ` abstract float` | ` `[getProgress](/reference/android/support/constraint/motion/Animatable#getProgress())`() ` |\n| ` abstract void` | ` `[setProgress](/reference/android/support/constraint/motion/Animatable#setProgress(float))`(float progress) ` |\n\nPublic methods\n--------------\n\n### getProgress\n\n```\npublic abstract float getProgress ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------|--------|\n| `float` | \u003cbr /\u003e |\n\n### setProgress\n\n```\npublic abstract void setProgress (float progress)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|----------------|\n| `progress` | `float` \u003cbr /\u003e |"]]