Translate Submenu Toolbar Completable On Subscribe
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
submenu Bar
Submenu bar to be animated.
translate X
Targeted x-translation property value at the end of animation.
translate Y
Targeted y-translation property value at the end of animation.
duration Ms
Duration of the animation in milliseconds.
interpolator
Animation interpolator, default is LinearInterpolator.