Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Selecting text through onLongPress

More
IP: 81.202.4.83 8 years 2 months ago #13990 by DsM92
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):
Code:
@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.
More
More
IP: 81.202.4.83 8 years 2 months ago #14008 by adrian.lazaro

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


Thanks so much nermeen! :)
Time to create page: 0.400 seconds
Powered by Kunena Forum