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

TOPIC:

Android - Pdf Render Custom View 6 years 7 months ago #12820

  • doubleeye
  • doubleeye's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 21
  • Thank you received: 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);

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

Android - Pdf Render Custom View 6 years 7 months ago #12821

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
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 following user(s) said Thank You: doubleeye

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

Android - Pdf Render Custom View 6 years 7 months ago #12822

  • doubleeye
  • doubleeye's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 21
  • Thank you received: 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!

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

  • Page:
  • 1
Powered by Kunena Forum