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
No description provided.
The text was updated successfully, but these errors were encountered:
private class MyOnPageChangeListener extends ViewPager.SimpleOnPageChangeListener { @Override public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { //滑动时的透明度动画 if (positionOffset > 0) { if (positionOffset < 0.1) positionOffset = 0; if (positionOffset > 0.9) positionOffset = 1; Log.d("postition", positionOffset + "---" + positionOffsetPixels + "--" + position); mTabViews.get(position).setIconAlpha(1 - positionOffset); mTabViews.get(position + 1).setIconAlpha(positionOffset); } //滑动时保存当前按钮索引 mCurrentItem = position; }
@OverRide public void onPageSelected(int position) { super.onPageSelected(position); // 这两行代码 去掉后 不会闪烁了. // resetState(); // mTabViews.get(position).setIconAlpha(1.0f); mCurrentItem = position; }
}
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: