Skip to content

Instantly share code, notes, and snippets.

@fraggjkee
Created May 13, 2020 07:17
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 fraggjkee/0240556fd57937fbb08f6c49b1566992 to your computer and use it in GitHub Desktop.
Save fraggjkee/0240556fd57937fbb08f6c49b1566992 to your computer and use it in GitHub Desktop.
data class RecyclerItem(
val data: Any,
@LayoutRes val layoutId: Int,
val variableId: Int
) {
fun bind(binding: ViewDataBinding) {
binding.setVariable(variableId, data)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment