I have a Linear layout initialized.
While running program, i am using following code to add child in this layout dynamically
ImageView image = new ImageView(this);
image.setImageBitmap(imageBitmap);
image.setId(counterOfReceipts);
myLinearlayout.addView(image);
When some one click on this imageView i need to call a function for each. Please tell me how can i do that.
Best Regards
1 Answer