If you set the touchlistener and return true, it will consume the touch event and the widget will not handle it further.
slidingPaneLayout.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View view, MotionEvent motionEvent) {
return true;
}
});