I'm researching Mupdf library on Android. I compiled and ran the Sample successfully. It's really a great library. But now I have a problem with zooming the page when firing "Double tap" event.
First, I implemented my View to 'listen' double tap event :
public class MuPDFReaderView extends ReaderView implements GestureDetector.OnDoubleTapListener
Then, I overrode onDoubleTap()
method :
@Override
public boolean onDoubleTap(MotionEvent e) {
// TODO Auto-generated method stub
MuPDFView pageView = (MuPDFView) getDisplayedView();
pageView.setScale(1.5f);
Log.e("double tap", "" + e.getDownTime());
return false;
}
When double tap on page, I can see the "double tap" log in Logcat, but the page is not zoomed. What was I wrong here?