Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

Swipe other view then open the slidinglayer #119

Open
huynhdq91 opened this issue Apr 17, 2020 · 0 comments
Open

Swipe other view then open the slidinglayer #119

huynhdq91 opened this issue Apr 17, 2020 · 0 comments

Comments

@huynhdq91
Copy link

huynhdq91 commented Apr 17, 2020

Hi, I have a problem with passing event to the slidinglayer.
What I want: when swipe on other view, the slidinglayer will start slide and open (same when we swipe the slidinglayer itself).
I tried pass the touch event to slidinglayer but both of them didn't work.
Please help me. Thanks.

        rootView.setOnTouchListener(new View.OnTouchListener() {
            @Override
            public boolean onTouch(View v, MotionEvent event) {
                return slidingLayer.onTouchEvent(event);
            }
        });
        //or
        rootView.setOnTouchListener(new View.OnTouchListener() {
            @Override
            public boolean onTouch(View v, MotionEvent event) {
                return slidingLayer.onInterceptTouchEvent(event);
            }
        });
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant