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
如果SimpleSilder放在一个可以滑动的控件里,SimplerSlider在不可见时是没有必要滚动的,所以
private boolean initAutoCycling = autoCycling; private boolean firstSetAuto = true;
public void setAutoCycling(boolean autoCycling) { this.autoCycling = autoCycling; if (firstSetAuto) { firstSetAuto = false; initAutoCycling = autoCycling; } if (autoCycling) startAutoCycling(); else stopAutoCycling(); }
@Override protected void onWindowVisibilityChanged(int visibility) { super.onWindowVisibilityChanged(visibility); if (visibility == View.VISIBLE) { if (initAutoCycling) { setAutoCycling(true); } } else if (visibility == INVISIBLE || visibility == GONE) { if (initAutoCycling) { setAutoCycling(false); } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
如果SimpleSilder放在一个可以滑动的控件里,SimplerSlider在不可见时是没有必要滚动的,所以
The text was updated successfully, but these errors were encountered: