I have a parent LinearLayout in which has some ImageViews, now I set OnCLickListener on the parent layout. How can I make the children ImageViews get the click listener?
Could something like this work?:
parent.setOnCLickListener(new OnClickListener() {
@Override
public void onClick(View v) {
if(v == childImageViewA) {
//...........
}
//..........
}
});
You could do this: