Skip to content

Instantly share code, notes, and snippets.

@pawegio
Created January 19, 2017 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pawegio/319ff7e6031f8ce6da55c1f095d4fda4 to your computer and use it in GitHub Desktop.
Save pawegio/319ff7e6031f8ce6da55c1f095d4fda4 to your computer and use it in GitHub Desktop.
open class ViewHolder(view: View, val action: ((Item) -> Unit)? = null) : RecyclerView.ViewHolder(view) {
// ...
}
class AViewHolder(view: View, action: ((Item) -> Unit)? = null) : ViewHolder(view, action) {
// ...
}
class BViewHolder(view: View, action: ((Item) -> Unit)? = null) : ViewHolder(view, action) {
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment