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

PDFViewCurl

More
IP: 116.206.40.17 7 years 6 months ago #14304 by yazidnt
PDFViewCurl was created by yazidnt
Excuse me,
How to change transition PDFView to PDFViewCurl in ViewLib new version like 3.50.2?
In old version there is PDFViewCurl but in new version this class is depracated.
More
IP: 111.196.247.186 7 years 6 months ago #14305 by radaee
Replied by radaee on topic PDFViewCurl
do you mean:
Intent intent = new Intent(this, com.radaee.reader.PDFGLSimpleAct.class);
intent.putExtra("MODE", "CURL");
startActivity(intent);
More
IP: 140.213.58.20 7 years 6 months ago - 7 years 6 months ago #14310 by yazidnt
Replied by yazidnt on topic PDFViewCurl
Yes, but PDFViewCurl class in new version is depracated.
In old version i use
switch (pos) {
case 0:
pdfView.PDFSetView(PDFReader.VERTICAL);
editor.putInt("pdf_view_type", PDFReader.VERTICAL);
break;
case 1:
pdfView.PDFSetView(PDFReader.HORIZONTAL);
editor.putInt("pdf_view_type", PDFReader.HORIZONTAL);
break;
case 2:
pdfView.PDFSetView(PDFReader.CURL);
editor.putInt("pdf_view_type", PDFReader.CURL);
break;
}

And in PDFReader class

case 2:
m_view = new PDFViewCurl(this.getContext());
back_color = 0xFFFFFFFF;
break;
Last edit: 7 years 6 months ago by yazidnt.
More
IP: 111.196.247.186 7 years 6 months ago #14311 by radaee
Replied by radaee on topic PDFViewCurl
in new version, you have to use PDFGLLayoutView:
m_view = new PDFGLLayoutView(this);
m_view.PDFOpen(m_doc, listener);
m_view.PDFSetView(2);//curl effect.
Time to create page: 0.399 seconds
Powered by Kunena Forum