Page sliding transition missing - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Page sliding transition missing

Page sliding transition missing 1 month 1 week ago #14539

  • yeyannaung
  • yeyannaung's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Version - 3.52.4
Style - single page, horizontal

I added the following code inside com.radaee.reader.PDFViewAct.java

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (event.getKeyCode() == KeyEvent.KEYCODE_VOLUME_UP) {
if (event.getAction() == KeyEvent.ACTION_DOWN) {
m_view.PDFGotoPage(getCurrentPage() - 1);
return true;
}
} else if (event.getKeyCode() == KeyEvent.KEYCODE_VOLUME_DOWN) {
if (event.getAction() == KeyEvent.ACTION_DOWN) {
m_view.PDFGotoPage(getCurrentPage() + 1);
return true;
}
}
return false;
}

Missing page slide transition on changing one page to another. * It is working in my project with older version of radaee library*

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

Last edit: by yeyannaung.

Page sliding transition missing 1 month 4 days ago #14551

  • luca.f
  • luca.f's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 28
  • Thank you received: 1
Sliding is based on touch movement (Ontounch event), "goto" only changes the page without any animation.
You can try simulating a fling to have the sliding effect.

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

Page sliding transition missing 3 weeks 22 hours ago #14587

  • yeyannaung
  • yeyannaung's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Could you show me some part of code for stimulating a fling from left to right or right to left.

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

Page sliding transition missing 3 weeks 9 minutes ago #14590

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 903
  • Karma: 43
  • Thank you received: 17
we have add a new method PDFScrolltoPage();
plz wait.

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

Page sliding transition missing 2 weeks 6 days ago #14592

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 883
  • Karma: 23
  • Thank you received: 73
A new beta release has been published, it contains the method PDFScrolltoPage() which can be used as follows:
@Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (event.getKeyCode() == KeyEvent.KEYCODE_VOLUME_UP && event.getAction() == KeyEvent.ACTION_DOWN) {
            m_view.PDFScrolltoPage(m_view.PDFGetCurrPage() - 1);
            //m_view.PDFGotoPage(m_view.PDFGetCurrPage() - 1);
            return true;
        } else if (event.getKeyCode() == KeyEvent.KEYCODE_VOLUME_DOWN && event.getAction() == KeyEvent.ACTION_DOWN) {
            m_view.PDFScrolltoPage(m_view.PDFGetCurrPage() + 1);
            //m_view.PDFGotoPage(m_view.PDFGetCurrPage() + 1);
            return true;
        }
        return super.onKeyDown(keyCode, event);
    }

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

Page sliding transition missing 6 days 22 hours ago #14610

  • yeyannaung
  • yeyannaung's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
It's perfect now. Thank you.

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

  • Page:
  • 1
Powered by Kunena Forum