Re: [android-developers] for loop drawing first graphics to x0 y0 if more than 1 iteration

2010-11-02 Thread Leigh McRae
Without going over your code all that much the first thing that stands out is that it looks like you're modifying the list in the loop as you're iterating over it. Still I would just run it in the debugger and step through and see what is going on. If you're having trouble breaking when the

[android-developers] for loop drawing first graphics to x0 y0 if more than 1 iteration

2010-10-30 Thread acr
Anyone have any idea why when i run this for loop to add a graphic to my screen, the first iteration coordinate get discarded if the loop runs more than once? For Example, I have a column of 7 graphics in a graphic array list, when I remove a graphic the code below runs to insert a new graphic,

Re: [android-developers] for loop drawing first graphics to x0 y0 if more than 1 iteration

2010-10-30 Thread Shawn Brown
                         if(_theGrid1.size()7){                                int g1left = 7-_theGrid1.size();                                        int i;                                        for(i=1;i=g1left;i++){                                                x1=64;