Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC:

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

  • khaled89
  • khaled89's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • 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 11 years 4 months ago #902

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

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

  • khaled89
  • khaled89's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • 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 11 years 4 months ago #907

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
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 11 years 4 months ago #910

  • khaled89
  • khaled89's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • 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 11 years 4 months ago #911

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
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