i want to apply an onClickListener event to an imageView, how do I accomplish this? Can anyone provide me with some source code examples
ImageView img = (ImageView) findViewById(R.id.myImageId); img.setOnClickListener(new OnClickListener() { public void onClick(View v) { // your code here } });
2.1m questions
2.1m answers
60 comments
57.0k users