Last active
January 19, 2017 23:46
-
-
Save pawegio/3f4f9f2168f9dc739af73ec80c3cff8b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typealias ItemAction = (Item, Int, Boolean) -> Unit | |
open class ViewHolder(view: View, val action: ItemAction? = null) : RecyclerView.ViewHolder(view) { | |
// ... | |
} | |
class AViewHolder(view: View, action: ItemAction? = null) : ViewHolder(view, action) { | |
// ... | |
} | |
class BViewHolder(view: View, action: ItemAction? = null) : ViewHolder(view, action) { | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment