- Posts: 100
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
How to handle when orientaion change
- asliyanage
- Topic Author
- Offline
- Premium Member
-
Less
More
IP: 192.168.0.71
11 years 9 months ago #8082
by asliyanage
How to handle when orientaion change was created by asliyanage
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;
}
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;
}
IP: 192.168.0.158
11 years 9 months ago #8089
by nermeen
Replied by nermeen on topic How to handle when orientaion change
It only depends on your requirements, for some the default behavior is sufficiente for other no.
- asliyanage
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 100
- Thank you received: 0
IP: 192.168.0.71
11 years 9 months ago #8093
by asliyanage
Replied by asliyanage on topic How to handle when orientaion change
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 ?
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 ?
IP: 192.168.0.71
11 years 9 months ago #8101
by radaee
Replied by radaee on topic How to handle when orientaion change
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.
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.
- asliyanage
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 100
- Thank you received: 0
IP: 192.168.0.71
11 years 9 months ago #8105
by asliyanage
Replied by asliyanage on topic How to handle when orientaion change
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?
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?
Time to create page: 0.403 seconds