How to get zoom state - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
01 Jun 2018
During last few days we're experiencing some delay in website stmp provider channel.
Some notification email from the website might not reaching containers.
We're working on a definitive solution.
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: How to get zoom state

How to get zoom state 3 years 11 months ago #6620

  • douglasmedia
  • douglasmedia's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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 3 years 11 months ago #6627

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 834
  • Karma: 22
  • Thank you received: 65
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 3 years 11 months ago #6643

  • douglasmedia
  • douglasmedia's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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 3 years 11 months ago #6653

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 834
  • Karma: 22
  • Thank you received: 65
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