Skip to content

Instantly share code, notes, and snippets.

@sergei-lapin
Created August 5, 2021 06:56
Show Gist options
  • Select an option

  • Save sergei-lapin/047853b6a343b3174e1aaa640319072f to your computer and use it in GitHub Desktop.

Select an option

Save sergei-lapin/047853b6a343b3174e1aaa640319072f to your computer and use it in GitHub Desktop.
getRecycledView
override fun getRecycledView(viewType: Int): RecyclerView.ViewHolder? {
val holder = super.getRecycledView(viewType)
if (holder == null) viewHolderSupplier.onItemCreatedOutside(viewType)
return holder
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment