in an android app I am using a sliding menu to the left: https://github.com/jfeinstein10/SlidingMenu
inside one of the activity, I have a ViewPager:
<android.support.v4.view.ViewPager
android:id="@+id/image_pager"
android:layout_width="match_parent"
android:layout_height="match_parent" />
I load multiple images view in the pager from the adapter to scroll between them.
However I am facing a conflict in scrolling.
When I swipe to the left everything works fine, the next image gets displayed.
But when I swipe to the right, the sliding menu will open, since its his behavior.
Can I make it in a way that swiping on the View Pager does not propagate to the sliding menu?
I tried to return true in the OnTouchListener of the pager, but the sliding menu is still opening, and now the slider doesn't work anymore.
viewPager.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
return true;
}
});
Thanks for any help