How to handle when orientaion change - 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 handle when orientaion change

How to handle when orientaion change 3 years 6 months ago #8082

  • asliyanage
  • asliyanage's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 100
  • Thank you received: 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;
}

Please Log in or Create an account to join the conversation.

How to handle when orientaion change 3 years 6 months ago #8089

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 834
  • Karma: 22
  • Thank you received: 65
It only depends on your requirements, for some the default behavior is sufficiente for other no.

Please Log in or Create an account to join the conversation.

How to handle when orientaion change 3 years 6 months ago #8093

  • asliyanage
  • asliyanage's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 100
  • Thank you received: 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 ?

Please Log in or Create an account to join the conversation.

How to handle when orientaion change 3 years 6 months ago #8101

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 830
  • Karma: 43
  • Thank you received: 10
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.

Please Log in or Create an account to join the conversation.

How to handle when orientaion change 3 years 6 months ago #8105

  • asliyanage
  • asliyanage's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 100
  • Thank you received: 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?

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum