Skip to content

Instantly share code, notes, and snippets.

@hongbeomi
Created September 10, 2022 11:19
Show Gist options
  • Save hongbeomi/d3b56f72563b67d9027ddc4230ac19d0 to your computer and use it in GitHub Desktop.
Save hongbeomi/d3b56f72563b67d9027ddc4230ac19d0 to your computer and use it in GitHub Desktop.
class ConcatAdapterController implements NestedAdapterWrapper.Callback {
..
public int getItemViewType(int globalPosition) {
WrapperAndLocalPosition wrapperAndPos = findWrapperAndLocalPosition(globalPosition);
int itemViewType = wrapperAndPos.mWrapper.getItemViewType(wrapperAndPos.mLocalPosition);
releaseWrapperAndLocalPosition(wrapperAndPos);
return itemViewType;
}
..
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment