How to lock the current page - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC: How to lock the current page

How to lock the current page 5 years 11 months ago #895

  • khaled89
  • khaled89's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Karma: 2
  • Thank you received: 0
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
The topic has been locked.

How to lock the current page 5 years 11 months ago #902

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
when you set this status, don't call PDFView.viewTouch in PDFReader.onTouchEvent
The topic has been locked.

How to lock the current page 5 years 11 months ago #905

  • khaled89
  • khaled89's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Karma: 2
  • Thank you received: 0
but the problem is I want the user to highlight the text, so I still need to send touch events
The topic has been locked.

How to lock the current page 5 years 11 months ago #907

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
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.
The topic has been locked.

How to lock the current page 5 years 11 months ago #910

  • khaled89
  • khaled89's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Karma: 2
  • Thank you received: 0
I tried it, the highlight didn't work since all touch events arent send to the PDFView class
The topic has been locked.

How to lock the current page 5 years 11 months ago #911

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
see readme.pdf in demo project("doc" subdir)
i think this will help you.
The topic has been locked.
  • Page:
  • 1
  • 2
Powered by Kunena Forum