Skip to content

Instantly share code, notes, and snippets.

@fvilarino
Created April 19, 2021 20:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save fvilarino/04a0cb53d9c900ab63b2422332c56ddb to your computer and use it in GitHub Desktop.
Viewholder item base class
interface Diffable {
val id: Long
}
interface RecyclerViewBindingItem : Diffable {
val type: Int
fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerViewViewHolder<*>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment