android-sliding-layer-lib icon indicating copy to clipboard operation
android-sliding-layer-lib copied to clipboard

Swipe other view then open the slidinglayer

Open huynhdq91 opened this issue 5 years ago • 0 comments

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

huynhdq91 avatar Apr 17 '20 17:04 huynhdq91