Skip to content
Advertisement

Tag: onclick

Is it better to have an onClick() method for each element or to implement an OnClickListener and do a switch statement [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 1 year ago. Improve this question I’m creating my own Navigation Drawer in my Android app and I was wondering which is better practice. I can either:

Advertisement