viewpager issue - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: viewpager issue

viewpager issue 3 years 3 months ago #8326

  • rockycamacho
  • rockycamacho's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Hello

Sometimes when swiping very fast, canScrollHorizontally is not getting called. This results in the viewpager scrolling to the next item instead of scrolling through all the pdf pages. Is there a way to fix this? Is there was a way to detect when a page is rendering/rendered? Maybe I can disable the viewpager from swiping.

My implementation of canScrollHorizontally is based on previous threads here:
@Override
public boolean canScrollHorizontally(int direction) {
    if (direction < 0) {
        final boolean hasReachedLeftEdge = m_view.vGetX() == 0;
        return !hasReachedLeftEdge;
    }
    final boolean hasReachedRightEdge = m_view.vGetX() + m_view.vGetWinW() >= m_view.vGetDocW();
    return !hasReachedRightEdge;
}

I would appreciate any help on this issue as it is very critical for my work.
Thanks,
Rocky

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

viewpager issue 3 years 3 months ago #8347

  • rockycamacho
  • rockycamacho's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Please, I need help with this issue. I have a premium license.

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

  • Page:
  • 1
Powered by Kunena Forum