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
@OverRide public void onScrollStateChanged(AbsListView view, int scrollState) { if (mHeaderView != null && scrollState == SCROLL_STATE_IDLE) { int firstVisiblePos = getFirstVisiblePosition(); if (firstVisiblePos == 0) { mHeaderView.layout(0, 0, mHeaderWidth, mHeaderHeight); } } //此处会出现栈溢出,这样写有何用处?注释掉可以正常运行。是否为bug? if (mScrollListener != null) { mScrollListener.onScrollStateChanged(view, scrollState); } }
@Override public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { if (totalItemCount > 0) { refreshHeader(); } //此处会出现栈溢出,这样写有何用处?注释掉可以正常运行。是否为bug? if (mScrollListener != null) { mScrollListener.onScroll(view, firstVisibleItem, visibleItemCount, totalItemCount); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
@OverRide
public void onScrollStateChanged(AbsListView view, int scrollState) {
if (mHeaderView != null && scrollState == SCROLL_STATE_IDLE) {
int firstVisiblePos = getFirstVisiblePosition();
if (firstVisiblePos == 0) {
mHeaderView.layout(0, 0, mHeaderWidth, mHeaderHeight);
}
}
//此处会出现栈溢出,这样写有何用处?注释掉可以正常运行。是否为bug?
if (mScrollListener != null) {
mScrollListener.onScrollStateChanged(view, scrollState);
}
}
The text was updated successfully, but these errors were encountered: