RadaeePDF.com :: Topic: how to overide vOnZoomEnd() method (1/2)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC: how to overide vOnZoomEnd() method

how to overide vOnZoomEnd() method 2 years 11 months ago #7384

  • asliyanage
  • asliyanage's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 105
  • Karma: 0
I need to overide the vOnZoomEnd() and increase the zoom facility.Can i have any example for this ?
The topic has been locked.

how to overide vOnZoomEnd() method 2 years 11 months ago #7389

  • nermeen
  • nermeen's Avatar
  • OFFLINE
  • Moderator
  • Posts: 684
  • Thank you received: 40
  • Karma: 18
First: to override vOnZoomEnd() you need to subclass PDFView

Second: vOnZoomEnd() is called after the zoom operation is finished.

Third: if you mean by increase zoom facility, increasing zoom max value, then you need to change the value of Global.zoomLevel in Global.default_config()
The topic has been locked.

how to overide vOnZoomEnd() method 2 years 11 months ago #7391

  • asliyanage
  • asliyanage's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 105
  • Karma: 0
can you please provide an example ?
The topic has been locked.

how to overide vOnZoomEnd() method 2 years 11 months ago #7392

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 678
  • Thank you received: 47
  • Karma: 14
Hi,
try to increase (max value is 5) the zoomLevel parameter in default_config() void in Global class..
Last Edit: 2 years 11 months ago by poudel.
The topic has been locked.

how to overide vOnZoomEnd() method 2 years 11 months ago #7393

  • asliyanage
  • asliyanage's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 105
  • Karma: 0
when the page is zoom in its maximum, if i double click, i need it to zoom out.how to do this?
The topic has been locked.

how to overide vOnZoomEnd() method 2 years 11 months ago #7395

  • asliyanage
  • asliyanage's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 105
  • Karma: 0
maximum vbalue is no 5.I change the zoomLevel value to 10 and its working fine.
The topic has been locked.
  • Page:
  • 1
  • 2
Powered by Kunena Forum