Decelerate Animator
减速动画,默认启用回弹效果。
Author
Simon Lee
Constructors
DecelerateAnimator
Link copied to clipboard
DecelerateAnimator
Link copied to clipboard
DecelerateAnimator
Link copied to clipboard
DecelerateAnimator
Link copied to clipboard
open fun DecelerateAnimator(context: Context, bounceCoeff: Float, bouncing: Boolean)
Content copied to clipboard
减速动画
Functions
getDistanceByDuration
Link copied to clipboard
open fun getDistanceByDuration(duration: Long, frictionCoeff: Float): Float
Content copied to clipboard
getDistanceByVelocity
Link copied to clipboard
open fun getDistanceByVelocity(velocity: Float, frictionCoeff: Float): Float
Content copied to clipboard
getDurationByDistance
Link copied to clipboard
open fun getDurationByDistance(distance: Float, frictionCoeff: Float): Long
Content copied to clipboard
getDurationByVelocity
Link copied to clipboard
open fun getDurationByVelocity(velocity: Float, frictionCoeff: Float): Long
Content copied to clipboard
getVelocityByDistance
Link copied to clipboard
open fun getVelocityByDistance(distance: Float, frictionCoeff: Float): Float
Content copied to clipboard
reviseDistance
Link copied to clipboard
open fun reviseDistance(distance: Float, startValue: Float, modulus: Float): Float
Content copied to clipboard
setFlingFrictionRatio
Link copied to clipboard
startAnimator
Link copied to clipboard
open fun startAnimator(startValue: Float, finalValue: Float, maxDuration: Long)
Content copied to clipboard
open fun startAnimator(startValue: Float, minFinalValue: Float, maxFinalValue: Float, velocity: Float)
Content copied to clipboard
startAnimator_Distance
Link copied to clipboard
open fun startAnimator_Distance(startValue: Float, distance: Float, modulus: Float)
Content copied to clipboard
startAnimator_Velocity
Link copied to clipboard
open fun startAnimator_Velocity(startValue: Float, velocity: Float, modulus: Float)
Content copied to clipboard