Skip to content

Instantly share code, notes, and snippets.

@tonnylitao
Last active June 17, 2020 09:46
Show Gist options
  • Save tonnylitao/de1b3a1e695b8aae2cafafbb2f05dab5 to your computer and use it in GitHub Desktop.
Save tonnylitao/de1b3a1e695b8aae2cafafbb2f05dab5 to your computer and use it in GitHub Desktop.
data class User(
...
) : RecyclerItem {
override val layoutId: Int
get() = R.layout.list_item_user
override val variableId: Int
get() = BR.user
override val dataToBind: Any
get() = this
override val id: Int
get() = this.id
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment