Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

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

  • asliyanage
  • asliyanage's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • 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 9 years 4 months ago #8089

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
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 9 years 4 months ago #8093

  • asliyanage
  • asliyanage's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • 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 9 years 4 months ago #8101

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
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 9 years 4 months ago #8105

  • asliyanage
  • asliyanage's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • 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