Open androidAhmedMourad opened 7 years ago
Maybe you will show your adapter?
public void setViewPager(final ViewPager viewPager) {
// Detect whether ViewPager mode
if (viewPager == null) {
mIsViewPagerMode = false;
return;
}
if (viewPager.equals(mViewPager)) return;
if (mViewPager != null) //noinspection deprecation
mViewPager.setOnPageChangeListener(null);
if (viewPager.getAdapter() == null)
throw new IllegalStateException("ViewPager does not provide adapter instance.");
mIsViewPagerMode = true;
mViewPager = viewPager;
mViewPager.addOnPageChangeListener(this);
// resetScroller();
postInvalidate();
}
resetScroller();
the point kinda shakes while moving between the tabs as this gif shows: