Skip to content

Instantly share code, notes, and snippets.

@dkhmelenko
Created July 2, 2020 12:25
Show Gist options
  • Save dkhmelenko/68a2d1740df96e4d1ace12795cbb5750 to your computer and use it in GitHub Desktop.
Save dkhmelenko/68a2d1740df96e4d1ace12795cbb5750 to your computer and use it in GitHub Desktop.
class BindableContent(val text: String) : ViewState.Inflatable(R.layout.view_state_content) {
override fun onBindView(view: View) {
val textView = view.findViewById<TextView>(R.id.text)
textView.text = text
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment