Selecting text through onLongPress - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Selecting text through onLongPress

Selecting text through onLongPress 10 months 1 week ago #13990

  • DsM92
  • DsM92's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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 10 months 6 days ago #13999

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 868
  • Karma: 23
  • Thank you received: 71

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

Selecting text through onLongPress 10 months 4 days ago #14008

  • adrian.lazaro
  • adrian.lazaro's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0

nermeen wrote: 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