setRelease

open fun setRelease()(source)

Starts the release animation.

If the view is currently pressed (mIsPressed is true), this method will:

  • Set mIsPressed to false.
  • Cancel any ongoing animation.
  • Set up the animator to animate from the current animated value to 1.0f (original scale).
  • Set the animation duration to mReleaseDuration.
  • Set the interpolator to sReleaseInterpolator.
  • Start the animation.