android-sliding-layer-lib
android-sliding-layer-lib copied to clipboard
Swipe other view then open the slidinglayer
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);
}
});