Hi guys, want to share MonoAdapter with you, it is...
# androidgithubprojects
j
Hi guys, want to share MonoAdapter with you, it is a general Adapter for single viewType cases. You can generate an Adapter with just few lines like these:
Copy code
val adapter = MonoAdapter.create<AdapterMyDataBinding, MyData> {
    textView.text = it.text1
    button.setOnClickListener {
        textView.text = it.text2
    }
}
adapter.submitList(list)
Hope you'll like it. thanks https://github.com/carousell/MonoAdapter