In my Activity, I have two Gallery items. I am implementing OnItemClickListener so I have to overwrite onItemClick method. I have set the listener as below,
eBookGallery.setOnItemClickListener(this);
eBrochuresGallery.setOnItemClickListener(this);
Those two Galleries load from two different ArrayList s. What I want is when I click the eBookGallery I want to get the data from eBookArrayList and when I click the eBrochuresGallery I want to get data from eBrochureArrayList.
How can I accomplish that task by using a single onItemClick method.
Thank you.
The first parameter in the
onItemClickmethod identifies theAdapterViewon which this click happened.