RadaeePDF.com :: Topic: How to handle when orientaion change (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: How to handle when orientaion change

How to handle when orientaion change 2 years 9 months ago #8082

  • asliyanage
  • asliyanage's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 105
  • Karma: 0
I need to know is there any special thing to do when the orientation change?
I saw some other library has below thing to handle the orientation changes.

switch(newConfig.orientation) {
case Configuration.ORIENTATION_PORTRAIT:
mPDFView.setPageViewMode(PDFViewCtrl.PAGE_VIEW_FIT_PAGE);
break;
case Configuration.ORIENTATION_LANDSCAPE:
mPDFView.setPageViewMode(PDFViewCtrl.PAGE_VIEW_FIT_WIDTH);
break;
}
The administrator has disabled public write access.

How to handle when orientaion change 2 years 9 months ago #8089

  • nermeen
  • nermeen's Avatar
  • OFFLINE
  • Moderator
  • Posts: 683
  • Thank you received: 40
  • Karma: 18
It only depends on your requirements, for some the default behavior is sufficiente for other no.
The administrator has disabled public write access.

How to handle when orientaion change 2 years 9 months ago #8093

  • asliyanage
  • asliyanage's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 105
  • Karma: 0
I tried with increasing the zoomLevel to 8 in Global class.It works well in Portrait mode,but not in Landscap mode.How to handle this ?
when i zooming in Landscape mode continuously it gives me which color screen after sometime.I have already raise this issue in another thread.Please give me a solution ?
The administrator has disabled public write access.

How to handle when orientaion change 2 years 9 months ago #8101

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
no better way.
we are developing new class PDFLayoutView, which support 20x zoom level.
for your case now: set zoomlevel less than 8, like 5 or 6, mostly enough.
The administrator has disabled public write access.

How to handle when orientaion change 2 years 9 months ago #8105

  • asliyanage
  • asliyanage's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 105
  • Karma: 0
Hi Radaee,
Could you please let me know how to stop zooming problematically ?This should be able as if i used 5 as a maximum zoom Level it doesn't zoom after some extent.So i need to apply that to when i am using zoom Level 8?
The administrator has disabled public write access.
Powered by Kunena Forum