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

Android - Pdf Render Custom View

More
IP: 192.168.0.71 9 years 3 weeks ago #12820 by doubleeye
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);
More
IP: 192.168.0.71 9 years 3 weeks ago #12821 by Davide
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.
More
IP: 192.168.0.71 9 years 3 weeks ago #12822 by doubleeye
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!
Time to create page: 0.388 seconds
Powered by Kunena Forum