How to get zoom state - 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

TOPIC: How to get zoom state

How to get zoom state 4 years 4 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 4 years 4 months ago #6627

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
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 4 years 4 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 4 years 4 months ago #6653

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
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