In previous projects I have typically created an OnClickListener
for any view which needed handle click interaction.
In more recent projects, I have implemented View.OnClickListener
, and then overridden the onClick
method of the activity to achieve the same result.
Is there an advantage in terms of performance of one implementation over the other, or is there a best practice for deciding which implementation is most appropriate for a particular situation?