i just started developing in android a couple of weeks ago. i am working a simple app that has 2 activities but one activity has 15 buttons. right now i am using
button = (Button) findViewById(R.id.button1);
button.setOnClickListener(new OnClickListener() {/* Some Code */ });
for each button inside my onCreate. this approach seems excessive to me and maybe not the best way.
I know about the 5 different forms of using onClick and implementing onClickListeners but I am asking which way would be the proper way of doing it. Best practices.
Thank You.