- Posts: 4
- Thank you received: 0
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
In zoomed state stop fling gesture to next page
IP: 192.168.0.70
12 years 1 month ago #5169
by rohitks
In zoomed state stop fling gesture to next page was created by rohitks
1) Use def_view = 3
2) Zoom a specific page to more than300 %
3) In above scenario, user can perform the following actions:
a) user can scroll within the page (panning).
b) User can change the page through page thumbnails.
c) User can also fling the page to go to next page.
It is required to avoid "c) User can also fling the page to go to next page."
i.e. User should not be allowed to fling the page to go to next page in such scenario.
Please help us and suggest appropriate resolution.
2) Zoom a specific page to more than300 %
3) In above scenario, user can perform the following actions:
a) user can scroll within the page (panning).
b) User can change the page through page thumbnails.
c) User can also fling the page to go to next page.
It is required to avoid "c) User can also fling the page to go to next page."
i.e. User should not be allowed to fling the page to go to next page in such scenario.
Please help us and suggest appropriate resolution.
IP: 192.168.0.158
12 years 1 month ago #5187
by nermeen
Replied by nermeen on topic In zoomed state stop fling gesture to next page
You need to change the behavior in PDFViewDual.vOnFling(float, float, float, float) .. add a check on the scale level m_scale
IP: 192.168.0.70
12 years 1 month ago #5216
by SONAWANE
Replied by SONAWANE on topic In zoomed state stop fling gesture to next page
You can do that by adding one condition in "PDFGestureListener" class which you can find in "PDFView"
just replace code from below
earlier
if (vOnFling(dx, dy, velocityX, velocityY)) {
m_status = STA_NONE;
if (m_listener != null)
m_listener.OnPDFInvalidate(false);
return true;
} else
return false;
change with
if (vGetMinScale() == vGetScale())
if (vOnFling(dx, dy, velocityX, velocityY)) {
m_status = STA_NONE;
if (m_listener != null)
m_listener.OnPDFInvalidate(false);
return true;
} else
return false;
else
return false;
just replace code from below
earlier
if (vOnFling(dx, dy, velocityX, velocityY)) {
m_status = STA_NONE;
if (m_listener != null)
m_listener.OnPDFInvalidate(false);
return true;
} else
return false;
change with
if (vGetMinScale() == vGetScale())
if (vOnFling(dx, dy, velocityX, velocityY)) {
m_status = STA_NONE;
if (m_listener != null)
m_listener.OnPDFInvalidate(false);
return true;
} else
return false;
else
return false;
IP: 192.168.0.71
11 years 2 months ago #8335
by alex.temp
Replied by alex.temp on topic In zoomed state stop fling gesture to next page
Hi, I cannot edit the PDFView as I'm using the standard version.
Any other way to solve this without editing the PDFView?
Any other way to solve this without editing the PDFView?
Time to create page: 0.400 seconds