Hi everyone, Here is my first attempt at creating ...
# feed
s
Hi everyone, Here is my first attempt at creating a DSL in Kotlin. Quick RecyclerView Adapter Dsl. Its for Android https://github.com/dragneelfps/quickrecyclerviewadapter Just wanted to share 🙂 Usage:
Copy code
private val rvAdapter by lazy {
 adapter(R.layout.item_layout, listOf("One", "Two")) {
     bindings {
         bind<TextView>(R.id.count_text) { datum, countTextView ->
             countTextView.text = datum
         }
     }
 }
}