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 int getItemViewType(int position) { if (position == 0) { return REFRESH_HEADER; } else if (position == 1) { return HEADER; } else if (1 < position && position < mAdapter.getItemCount() + 2) { return mAdapter.getItemViewType(position - 2); } else if (position == mAdapter.getItemCount() + 2) { return FOOTER; } else if (position == mAdapter.getItemCount() + 3) { return LOAD_MORE_FOOTER; }
throw new IllegalArgumentException("Wrong type! Position = " + position); }
The text was updated successfully, but these errors were encountered:
Don't extends WrapperAdapter. WrapperAdapter is inner class which wrapper your real adapter to do some hack thing like add header/footer etc...
Sorry, something went wrong.
No branches or pull requests
@OverRide
public int getItemViewType(int position) {
if (position == 0) {
return REFRESH_HEADER;
} else if (position == 1) {
return HEADER;
} else if (1 < position && position < mAdapter.getItemCount() + 2) {
return mAdapter.getItemViewType(position - 2);
} else if (position == mAdapter.getItemCount() + 2) {
return FOOTER;
} else if (position == mAdapter.getItemCount() + 3) {
return LOAD_MORE_FOOTER;
}
The text was updated successfully, but these errors were encountered: