-
Notifications
You must be signed in to change notification settings - Fork 143
Open
Description
@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);
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels