If I only add the first graphic, the graphic is drawn CORRECTLY to x63 y63
if I add both, the first is drawn INCORRECTLY to x0 y0, and the second graphic is drawn CORRECTLY to x63 y126
if I add a third, the the first TWO are drawn INCORRECTLY and the last is drawn correctly.
I have tried invalidate and postInvalidate with no success and have hit a wall.
Can anyone here help me remedy this problem, I am totally stumped here

I am obviously missing something Im just not sure what.
- Code: Select all
//FIRST GRAPHIC TO ADD FROM THE _toAdd ARRAY
x=63;
y=63;
graphic.getGridCoordinates().setGrid1X(x);
graphic.getGridCoordinates().setGrid1Y(y);
_toMove.add(_toAdd.get(0));
_theGrid.add(0,_toAdd.get(0));
_theGrid.get(0).setAMT(_theGrid.get(0).getAMT()+2);
_theGrid.get(0).setMV(11);
_toAdd.remove(_theGrid.get(0));
//SECOND GRAPHIC TO ADD FROM THE _toAdd ARRAY
x=63;
y=126;
graphic.getGridCoordinates().setGrid1X(x);
graphic.getGridCoordinates().setGrid1Y(y);
_toMove.add(_toAdd.get(0));
_theGrid.add(0,_toAdd.get(0));
_theGrid.get(0).setAMT(_theGrid.get(0).getAMT()+2);
_theGrid.get(0).setMV(12);
_toAdd.remove(_theGrid.get(0));
I have the following running in OnDraw(Canvas canvas) non stop
- Code: Select all
bitmap = _theGrid.get(0).getBitmap();
gridcoords = _theGrid.get(0).getGridCoordinates();
canvas.drawBitmap(bitmap, gridcoords.getGrid1X(), gridcoords.getGrid1Y(), null);