RadaeePDF.com :: Topic: Android - Pdf Render Custom View (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: Android - Pdf Render Custom View

Android - Pdf Render Custom View 3 weeks 6 days ago #12820

  • doubleeye
  • doubleeye's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
Good day, I have my pdf rendered and working as expected using the default view from the ReaderController.java
How do I use my own custom layout to render the pdf in? I would like to add a toolbar at the top of the page.
Thanks!

eg. opening pdf
m_vPDF = new ReaderController(this);
m_vPDF.open(doc);
setContentView(m_vPDF);
The administrator has disabled public write access.

Android - Pdf Render Custom View 3 weeks 6 days ago #12821

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 680
  • Thank you received: 47
  • Karma: 14
Hi,
ReaderController is an old class using deprecated classes, so I invite you to check and use RDPDFReader from the demo. This is a new module that improves the performance and has higher zoom levels.
I suggest you to look at PDFViewAct, in the onCreate you will find the m_layout (pdf_layout.xml) and you can edit it as you want.
In PDFViewController you will find all the UI handling.
The administrator has disabled public write access.
The following user(s) said Thank You: doubleeye

Android - Pdf Render Custom View 3 weeks 6 days ago #12822

  • doubleeye
  • doubleeye's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Karma: 0
It seems to work as expected,
I have replaced the old PDFReader with the new class com.radaee.reader.PDFLayoutView.
And creating a custom com.radaee.reader.PDFViewAct with my own UI.
Thanks!
The administrator has disabled public write access.
Powered by Kunena Forum