TranslateSubmenuToolbarCompletableOnSubscribe

constructor(@NonNull submenuBar: ContextualToolbarSubMenu, translateX: Int, translateY: Int, durationMs: Long, @Nullable interpolator: Interpolator)

Creates a CompletableOnSubscribe that animates the passed toolbar and calls onComplete() on subscriber once finished.

Parameters

submenuBar

Submenu bar to be animated.

translateX

Targeted x-translation property value at the end of animation.

translateY

Targeted y-translation property value at the end of animation.

durationMs

Duration of the animation in milliseconds.

interpolator

Animation interpolator, default is LinearInterpolator.