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

TOPIC: PDFViewCurl

PDFViewCurl 3 weeks 1 day ago #14304

  • yazidnt
  • yazidnt's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
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.

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

PDFViewCurl 3 weeks 1 day ago #14305

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 860
  • Karma: 43
  • Thank you received: 13
do you mean:
Intent intent = new Intent(this, com.radaee.reader.PDFGLSimpleAct.class);
intent.putExtra("MODE", "CURL");
startActivity(intent);

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

PDFViewCurl 3 weeks 2 hours ago #14310

  • yazidnt
  • yazidnt's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
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;

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

Last edit: by yazidnt.

PDFViewCurl 2 weeks 6 days ago #14311

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 860
  • Karma: 43
  • Thank you received: 13
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.
The following user(s) said Thank You: yazidnt

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

  • Page:
  • 1
Powered by Kunena Forum