RadaeePDF.com :: Topic: Double tap on a view (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: Double tap on a view

Double tap on a view 3 years 6 hours ago #6713

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?
The administrator has disabled public write access.

Double tap on a view 2 years 11 months ago #6721

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 663
  • Thank you received: 43
  • Karma: 12
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;
The administrator has disabled public write access.
Powered by Kunena Forum