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

How to show print UI all the time on top of pdf

More
IP: 194.86.38.39 5 years 7 months ago #15190 by esaw
Hi!

Is there a way to show the UI all the time (not only after tapping the screen)? Also we want to move the print action from the menu to the topbar. Can we edit the UI?
How to show print UI all the time on top of pdf?

Thanks,

Esa
More
IP: 93.42.249.223 5 years 7 months ago - 5 years 7 months ago #15194 by luca.f
1) Avoid hiding the topbar:
in PDFViewController add this line at the end of the constructor
Code:
m_bar_cmd.BarShow(); // start with bar shown

Comment out every line m_bar_cmd.BarHide();
Code:
//m_bar_cmd.BarHide();
so that the bar is never hidden

2) Print is a generic View in the "more" layout
Code:
btn_print = moreLayout.findViewById(R.id.print);
You can move it everywhere you want in the layout.
In PDFViewController, update its assignment accordingly, i.e if you move it to the topbar
Code:
btn_print = layout.findViewById(R.id.print);
Last edit: 5 years 7 months ago by luca.f.
Time to create page: 0.440 seconds
Powered by Kunena Forum