I am using android compatibility package version 4 for displaying pdf pages in my app. I have used PagerAdapter & ViewPager for displaying pdf pages like horizontal scro
You're setting it to false but have no case for resetting it back to true. Also, your intercept touch logic seems a bit odd... the only time you allow the pager to intercept (and thereby process in onTouchEvent()) is when you set paging enabled to false. How about the following?
@Override
public boolean onInterceptTouchEvent(MotionEvent event) {
boolean result = true;
View scroll = getChildAt(childId);
if (scroll != null) {
Rect rect = new Rect();
CommonLogic.logMessage("PDF Page Rectangle ", TAG, Log.VERBOSE);
scroll.getHitRect(rect);
if (rect.contains((int) event.getX(), (int) event.getY())) {
setPagingEnabled(false);
result = false;
} else {
setPagingEnabled(true);
}
}
return result;
}