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
Description
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
Labels
No labels