I\'d like to disable all the animations for the transitions in my custom ViewPager.
This view pager contains four tabs -and each tab loads a Fragment
Here's another solution:
Code Snippet:
@Override
public void setCurrentItem(int item, boolean smoothScroll) {
super.setCurrentItem(item, false);
}
@Override
public void setCurrentItem(int item) {
super.setCurrentItem(item, false);
}
By setting smoothScroll to false, you're disabling the scroll animation.