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

Select and unselect of annotation

More
IP: 103.97.240.176 7 years 2 months ago #14239 by [email protected]
Hello team,
Now scenario is we have to select annotation first and then we use it and if we want to select another annotation we have to unselect it first .
Now I wanted to make it dynamic, ie. directly can select any annotation even i selected any annotation .
Please help me it is very important for me.
Early feedback is appreciated.
More
IP: 212.97.62.176 7 years 2 months ago #14241 by emanuele
Hi,
you could try to edit the onTouchAnnot method in PDFLayoutView class by adding the two lines at the bottom (with the "// ADD THIS LINE" comment):
Code:
private boolean onTouchAnnot(MotionEvent event) { if (m_status != STA_ANNOT) return false; switch (event.getActionMasked()) { case MotionEvent.ACTION_DOWN: m_annot_x0 = event.getX(); m_annot_y0 = event.getY(); if (m_annot_x0 > m_annot_rect[0] && m_annot_y0 > m_annot_rect[1] && m_annot_x0 < m_annot_rect[2] && m_annot_y0 < m_annot_rect[3]) { m_annot_rect0 = new float[4]; m_annot_rect0[0] = m_annot_rect[0]; m_annot_rect0[1] = m_annot_rect[1]; m_annot_rect0[2] = m_annot_rect[2]; m_annot_rect0[3] = m_annot_rect[3]; } else { m_annot_rect0 = null; PDFCancelAnnot(); // ADD THIS LINE onTouchNone(event); // ADD THIS LINE } break; . //other code . //other code . //other code .
Time to create page: 0.379 seconds
Powered by Kunena Forum