animate

open fun animate(@NonNull view: View, @AnimatorRes animatorRes: Int, @Nullable listener: AnimatorUtils.OnAnimationEndListener)

Animate a view from an animator resource.

Parameters

view

the view to be animated

animatorRes

the animator resource to be loaded

listener

the animator end listener


open fun animate(@Nullable view: View, @AnimatorRes animatorRes: Int, duration: Int, @Nullable listener: AnimatorUtils.OnAnimationEndListener)

Animate a view from an animator resource.

Parameters

view

the view to be animated

animatorRes

the animator resource to be loaded

duration

the duration of the animator

listener

the animator end listener


open fun animate(@NonNull view: View, @AnimatorRes animatorRes: Int)

Animate a view from an animator resource.

Parameters

view

the view to be animated

animatorRes

the animator resource to be loaded


open fun animate(@NonNull view: View, @AnimatorRes animatorRes: Int, duration: Int)

Animate a view from an animator resource.

Parameters

view

the view to be animated

animatorRes

the animator resource to be loaded

duration

the duration of the animator