Android : Android Two GridViews using Tab Bar Cells in One Grid View changing other Grid View Cells

on Wednesday, April 15, 2015


Two Grid View Classes "at a time" using a Tab Bar Controller. Both Classes get created correctly and have a custom adapter (extends BaseAdapter). These are getting created properly, etc.


There are two first tabs that each create a Grid View Adapter, tab a and tab b.


All is good, except sometimes, when scrolling the images in Tab B Grid View and then going back to Tab A Grid View, some of the cells have been "changed" by the scrolling in Tab B. Both Grid Views use common code for the Grid View and the Adapter. Scrolling in Tab A fixes the issue since the images get reset when scrolling.


Have tried many things, including creating a new grid view convertView every time it is asked for, with the same result.


How can the cells from the Tab B be affecting cells from Tab A with totally different instances of Grid View.


Any hints suggestions welcome.


0 comments:

Post a Comment