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 } });
1.4m articles
1.4m replys
5 comments
57.0k users