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

Swipe other view then open the slidinglayer #119

Open
@huynhdq91

Description

@huynhdq91

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);
            }
        });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions