tags:

views:

528

answers:

1

i want to apply click event to image .how to apply with source code

+3  A: 
ImageView img = (ImageView) findViewById(R.id.myImageId);
img.setOnClickListener(new OnClickListener() {
    public void onClick(View v) {
       // your code here
    }
});
David Hedlund