Jintin
12/15/2020, 12:09 PMval adapter = MonoAdapter.create<AdapterMyDataBinding, MyData> {
textView.text = it.text1
button.setOnClickListener {
textView.text = it.text2
}
}
Just define how the binding should work with your data object and that's it.
The lib will do the rest for you, I think it's quite useful for simple use case in you app.
Let me know if you have any comment. Thanks!! (also work without ViewBinding btw)
https://github.com/carousell/MonoAdapter