Hi there..
I'm developing an application that updates several ImageViews when an action is performed.
If i update these ImageViews directly from my Activity, they update fine (using setImageStatus()); however, when I create a class to hold all the ImageViews, and update them from there, they don't change their actual look on the emulator.
The same behaviour seems to apply to adding OnTouchListeners - they're not called when I register them through another object.. CellView is an extension of ImageView with no relevant changes.
java Code:
public void instantiateCellListeners(OnTouchListener l) {
Iterator <CellView> iter = cells.
iterator();
while (iter.hasNext()) {
CellView c = iter.next();
c.setOnTouchListener(l);
}
}
does not provide listeners that react when I touch the cells in question. However, the same code does register listeners when called from the activity's OnCreate, rather than from an object method called from the same place.
Thank for any help,
IOli Bird