I have three tabs, the content of each tab is a view ( Gridview in this case).
I have created an image adapter class to populate the grid.
I call the Image adapter using
GridView gridview=(GridView)findViewById(R.id.gridview);
gridview.setAdapter(new ImageAdapter(this));
But each view must be populated differently. How do i know which view called the image adapter class? Is there a method a to pass an argument along with the call or can this be done differently?
Try creating a constructor in your grid adapter class, and try to pass the array along with the context