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
2009-12-03 11:50:01