Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong events #70

Open
intmainreturn00 opened this issue Aug 1, 2019 · 0 comments
Open

wrong events #70

intmainreturn00 opened this issue Aug 1, 2019 · 0 comments

Comments

@intmainreturn00
Copy link

intmainreturn00 commented Aug 1, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant