Double tap on a view - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Double tap on a view

Double tap on a view 3 years 7 months ago #6713

  • petr.sklenicka
  • petr.sklenicka's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • 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 3 years 7 months ago #6721

  • Davide
  • Davide's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 744
  • Karma: 16
  • Thank you received: 56
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