startViewAlphaAnimation

open fun startViewAlphaAnimation(show: Boolean, immediately: Boolean = false, force: Boolean = false, dispatchedByScroll: Boolean = false, dispatchedByVisibilityChange: Boolean = false)

Starts the alpha transition animation to show or hide the view.

Parameters

show

true to show, false to hide.

immediately

If true, applies alpha without animation.

force

Force execution regardless of current target alpha.

dispatchedByScroll

Indicates if animation was triggered by scroll events.

dispatchedByVisibilityChange

Indicates if animation was triggered by visibility changes.