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

TOPIC:

Selecting text through onLongPress 5 years 9 months ago #13990

  • DsM92
  • DsM92's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
Hi everyone,

I'm trying to select a text from the PDF through the "onLongPress" method (by default, you have to select the "select" tool to make a selection).
I've found on this thread that we can override this method (PDFLayoutView.java):
@Override
        public void onLongPress(MotionEvent e) {
            if (m_layout == null) return;
            if (m_status == STA_NONE && m_listener != null)
                m_listener.OnPDFLongPressed(m_layout, e.getX(), e.getY());
        }

However, how can we reimplement that to make a selection of the word where you are doing a LongPress event?

Thanks so much, and congratulations for this amazing library.

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

Selecting text through onLongPress 5 years 9 months ago #13999

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87

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

Selecting text through onLongPress 5 years 8 months ago #14008

  • adrian.lazaro
  • adrian.lazaro's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0

Please follow the answer in www.radaeepdf.com/forum/Android-developm...on-word-search#11982


Thanks so much nermeen! :)

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

  • Page:
  • 1
Powered by Kunena Forum