RadaeePDF.com :: Topic: viewpager issue (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: viewpager issue

viewpager issue 2 years 6 months ago #8326

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
The administrator has disabled public write access.

viewpager issue 2 years 6 months ago #8347

Please, I need help with this issue. I have a premium license.
The administrator has disabled public write access.
Powered by Kunena Forum