Created
May 13, 2020 07:17
-
-
Save fraggjkee/0240556fd57937fbb08f6c49b1566992 to your computer and use it in GitHub Desktop.
This file contains 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
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