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

TOPIC:

How to get zoom state 9 years 9 months ago #6620

  • douglasmedia
  • douglasmedia's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 7
  • Thank you received: 0
Hello,

I wan't to do an specific action when the page is zoomed in. So I need something like a zoom listener. How can I achieve that?

Thanks for your help!

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

How to get zoom state 9 years 9 months ago #6627

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
You can customize PDFView and ovveride vOnZoomEnd() .. or vOnTimer(Object)
check
www.androidpdf.mobi/forum/Android-develo...eed-more-events#6212

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

How to get zoom state 9 years 9 months ago #6643

  • douglasmedia
  • douglasmedia's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 7
  • Thank you received: 0
Thanks for your reply. I tried it by overriding the vOnZoomEnd()-Method and it works quiet well. But what I want is to disable a ViewPager when the pdf is zoomed in and enable the ViewPager again when the pdf document is zoomed out. How can I get those zoom states?

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

How to get zoom state 9 years 9 months ago #6653

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
You can do this by calling m_view.vGetScale() and compare the value with m_view.vGetMinScale() and m_view.vGetMaxScale()

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

  • Page:
  • 1
Powered by Kunena Forum