RadaeePDF.com :: Topic: How to get zoom state (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: How to get zoom state

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

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!
The administrator has disabled public write access.

How to get zoom state 3 years 4 months ago #6627

  • nermeen
  • nermeen's Avatar
  • OFFLINE
  • Moderator
  • Posts: 709
  • Thank you received: 49
  • Karma: 18
You can customize PDFView and ovveride vOnZoomEnd() .. or vOnTimer(Object)
check
www.androidpdf.mobi/forum/Android-develo...eed-more-events#6212
The administrator has disabled public write access.

How to get zoom state 3 years 4 months ago #6643

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?
The administrator has disabled public write access.

How to get zoom state 3 years 4 months ago #6653

  • nermeen
  • nermeen's Avatar
  • OFFLINE
  • Moderator
  • Posts: 709
  • Thank you received: 49
  • Karma: 18
You can do this by calling m_view.vGetScale() and compare the value with m_view.vGetMinScale() and m_view.vGetMaxScale()
The administrator has disabled public write access.
Powered by Kunena Forum