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

TOPIC:

swipe event 8 years 9 months ago #9129

  • darvishi
  • darvishi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Right now I'm using the PDFViewAct activity for show pdf,
How is it possible to define swipe right and left effect to open another pdf file?
for example if the current file is file2.pdf I need swipe left (or right) to open other_file.pdf.

Please Log in or Create an account to join the conversation.

swipe event 8 years 9 months ago #9144

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
if you have a premium or a professional license you can override the onFling() method of PDFLayoutView class and edit it as you want.
Remember to deallocate all the old instances when you open new PDFs to prevent memory issue.

You can also use a ViewPager with pdfreader inside of it
Look at PDFPagerAct. (this sample project opens only one pdf with a customized ViewPager).

Please Log in or Create an account to join the conversation.

swipe event 8 years 9 months ago #9148

  • darvishi
  • darvishi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Hi
thanks for your answer.
i cant find PDFPagerAct in PDFReader andRDPdfReader samples

Please Log in or Create an account to join the conversation.

swipe event 8 years 9 months ago #9149

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
what version of the library are you using?
You can download the last beta version here .
You can find PDFPagerAct in RDPdfReader.

Please Log in or Create an account to join the conversation.

swipe event 8 years 9 months ago #9150

  • darvishi
  • darvishi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Hi
Im using 3.4 Version
but im going to download beta version now
thank you for your help

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum