Suppose we have an Activity with a lot of views on which OnClickListener is to be registered.
OnClickListener
The most common way to implement this is to let the Activi
First approach is better than the other because thats why View.OnClickListener is an Interface instead of an abstract class. besides the later might leak in various situations since you are using a non-static inner class.
View.OnClickListener
Interface
abstract class