Closed ppamorim closed 9 years ago
Well, I've found the solution for this issue.
Just add this:
private ViewPager.OnPageChangeListener onPageChangeListener =
new ViewPager.OnPageChangeListener() {
@Override public void onPageScrolled(int position, float positionOffset,
int positionOffsetPixels) {
if(positionOffsetPixels != 0) {
return;
}
Fragment page = adapter.getPage(position);
... rest of the code...
}
@Override public void onPageSelected(int position) { }
@Override public void onPageScrollStateChanged(int state) { }
};
Can you add this on your example?
@ppamorim
Hello, can you show me your solution a bit more detailed? In my app, when I swipe fast the tabs there's a glitch and I just can't find a way to fix it.
Thank you!
Hi! I'm facing some laggy animation on ViewPager transition. Everything on app is fast (animations, recyclerView), but when I start the transition with the library, the fps slow down until the animation ends. I've test only with a ViewPager and the slide of it is faster than wind. It a prove that is a problem with the library(or animation of smartTab).
Device: S4 mini