viewPager.postDelayed(new Runnable() {
@Override
public void run() {
viewPager.setCurrentItem(pos);
}
}, 100);
根据https://stackoverflow.com/questions/19316729/android-viewpager-setcurrentitem-not-working-after-onresume上面的大神解决了此问题,再次记录下