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

TOPIC:

How to show print UI all the time on top of pdf 3 years 8 months ago #15190

  • esaw
  • esaw's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
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

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

How to show print UI all the time on top of pdf 3 years 8 months ago #15194

  • luca.f
  • luca.f's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 93
  • Thank you received: 10
1) Avoid hiding the topbar:
in PDFViewController add this line at the end of the constructor
m_bar_cmd.BarShow(); // start with bar shown

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

2) Print is a generic View in the "more" layout
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
btn_print = layout.findViewById(R.id.print);

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

Last edit: by luca.f.
  • Page:
  • 1
Powered by Kunena Forum