ysamlan/horizontalpager

Child View Swipe Events

ravindranathakila opened this issue · 1 comments

Fix:

@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
    getChildAt(0).dispatchTouchEvent(ev);
    this.onTouchEvent(ev);
    return true;
}

NOTE: getChildAt uses a magic number.

This library is obsoleted by Google's release of their own ViewPager library as part of the Android Compatibility Package, revision 3. I would recommend using that for any new development; this library won't be getting any updates or patches.