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

How to lock the current page

More
IP: 192.168.0.70 13 years 3 months ago #895 by khaled89
how I can block the current page that the user is reading, I want to freeze the page and prevent the user from changing the page when scrolling vertically or horizontally.

many thanks
More
IP: 192.168.0.70 13 years 3 months ago #902 by radaee
Replied by radaee on topic How to lock the current page
when you set this status, don't call PDFView.viewTouch in PDFReader.onTouchEvent
More
IP: 192.168.0.70 13 years 3 months ago #905 by khaled89
but the problem is I want the user to highlight the text, so I still need to send touch events
More
IP: 192.168.0.70 13 years 3 months ago #907 by radaee
Replied by radaee on topic How to lock the current page
I know, you don't call PDFView.viewTouch just when you has some text selecting operations.
otherwise, call PDFView.viewTouch.
use a boolean value to control status.
More
IP: 192.168.0.70 13 years 3 months ago #910 by khaled89
I tried it, the highlight didn't work since all touch events arent send to the PDFView class
More
IP: 192.168.0.70 13 years 3 months ago #911 by radaee
Replied by radaee on topic How to lock the current page
see readme.pdf in demo project("doc" subdir)
i think this will help you.
Time to create page: 0.424 seconds
Powered by Kunena Forum