We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我设置 viewPager.setCurrentItem(3); Fragment切换到了对应的 。 但是下面的Indicator 没有切换过去。改怎么弄一下嘞??
The text was updated successfully, but these errors were encountered:
可以在AlphaIndicator里面定义一个方法,这个变量是已经定义好的
/** * 添加设置默认第几页的 * @param currentItem 当前要显示的item */ public void setCurrentItem(int currentItem) { this.currentItem = currentItem; }
然后在你使用的activity里面,
viewPager.setCurrentItem(3); alphaIndicator.setCurrentItem(3);
同时调用这两个方法,切记,是一起调用,填写的int是一致的。就可以实现
Sorry, something went wrong.
No branches or pull requests
我设置 viewPager.setCurrentItem(3); Fragment切换到了对应的 。 但是下面的Indicator 没有切换过去。改怎么弄一下嘞??
The text was updated successfully, but these errors were encountered: