I have 4 images. We should be able to click on these images. I\'d like to know if I have to create 4 OnClickListener, or there is another way to do this properly?>
OnClickListener
I would suggest using android:onClick for more readable code.
Example :
Then in your activity class add the onClick method.
public void onClick(View v) { switch(v.getId()){ case R.id.myButton: //Your logic goes here... break; default: break; } }