emilsjolander / android-FlipView

A small, easy to use android library for implementing flipping between views as seen in the popular Flipboard application
Apache License 2.0
925 stars 273 forks source link

With SwipeRefreshLayout #53

Open whowazit opened 9 years ago

whowazit commented 9 years ago

Can't implement this with SwipeRefreshLayout because when I pull the top even though i'm at the page 2 or so on the swiperefresh is called not the onoverflip

TLHP commented 8 years ago

I also realize that when using FlipView with SwipeRefreshLayout. Any news for this update/ feature?

TLHP commented 8 years ago

A work-around is to custumize SwipeRefreshLayout from support.v4

In function canChildScrollUp, add this one right at the beginning:

if (mTarget instanceof FlipView) {
    return ((FlipView) mTarget).getPageCount() > 0 && ((FlipView) mTarget).getCurrentPage() > 0;
}