Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Double tap on a view

More
IP: 192.168.0.71 11 years 8 months ago #6713 by petr.sklenicka
Hello,

I have a little issue with a double tapping in a view within PDF document. When I perform double tap on the view, the method OnPDFDoubleTapped is called, which is fine. But before calling OnPDFDoubleTapped method, OnPDFSingleTapped method is called first.
Could you give me any advice, please, how can I stop calling the method OnPDFSingleTapped, when I perform only double tap in the view?
More
IP: 192.168.0.110 11 years 8 months ago #6721 by Davide
Replied by Davide on topic Double tap on a view
Hello,

if you have a professional or a premium license you can try this solution:

Override the onSingleTapConfirmed method in PDFView class with

Code:
vSingleTap( e.getX(), e.getY() ); if( m_listener != null && m_status == STA_MOVING ) { m_status = STA_NONE; if( m_listener.OnPDFSingleTapped(e.getX(), e.getY()) ) { m_status = STA_NONE; return true; } else return false; } else return false;


and Override the onSingleTapUp method in PDFView class with

Code:
return true;
Time to create page: 0.396 seconds
Powered by Kunena Forum