SlideUp-Android
SlideUp-Android copied to clipboard
wrong events
I was wondering how I could detect that sliding view is fully closed or fully opened. For that, I'm started using
slideUp = new SlideUpBuilder(root).withStartState(SlideUp.State.HIDDEN)
.withStartGravity(Gravity.BOTTOM)
.withSlideFromOtherView(root)
.withLoggingEnabled(true)
.withListeners(new SlideUp.Listener.Events() {
public void onVisibilityChanged(int visibility)
public void onSlide(float percent)
Pannel slide up from bottom and back. When I call show() I've got these events:
Listener(0) (onSlide ) value = 100.0
Listener(0) (onVisibilityChanged ) value = GONE
Listener(0) (onSlide ) value = 100.0
Listener(0) (onVisibilityChanged ) value = GONE
Listener(0) (onSlide ) value = NaN
How based on such events detect when the panel is closed and when its open?
visibility in event is always GONE and slideUp.isVisible during events - too.