Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Double tap on a view 10 years 9 months ago #6713

  • petr.sklenicka
  • petr.sklenicka's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 36
  • Thank you received: 0
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?

Please Log in or Create an account to join the conversation.

Double tap on a view 10 years 9 months ago #6721

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hello,

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

Override the onSingleTapConfirmed method in PDFView class with

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

return true;

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum