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

TOPIC:

Hiding Android toolbar causes PDF to refresh and go to the start with no zoom. 5 years 11 months ago #13816

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
we suggest you to "jump" the two following methods on PDFLayoutView.onSizeChanged(int w, int h, int oldw, int oldh) based upon your needs (as example when you show/hide your action bar)
m_layout.vZoomSet(m_layout.vGetWidth() / 2, m_layout.vGetHeight() / 2, m_layout.vGetPos(0, 0), 1);
PDFGotoPage(m_pageno);

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

Hiding Android toolbar causes PDF to refresh and go to the start with no zoom. 5 years 11 months ago #13820

  • tim_burnham
  • tim_burnham's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 7
  • Thank you received: 0
Thanks that works to remove those 2 lines from onSizeChanged in PDFLayoutView. Seems like those 2 lines should not be there. Not sure if that is desired behavior for other people.

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum