SlideUp-Android icon indicating copy to clipboard operation
SlideUp-Android copied to clipboard

wrong events

Open intmainreturn00 opened this issue 6 years ago • 0 comments

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.

intmainreturn00 avatar Aug 01 '19 07:08 intmainreturn00