I migrated a project from butterknife to android viewBinding.
In Butterknife there is something like:
@OnClick(R.id.button)
fun onButtonClicked()
And now I have to set all the button click listener like this:
binding.button.setOnClickListener { onButtonClicked() }
...
Is there a way to implement a custom annotation to be able to write something like:
@OnClick(binding.button)
fun onButtonClicked()