Lines Matching refs:mColumns
124 private int mRows, mColumns;
246 mColumns = mWidth / mCellSize;
248 mCells = new View[mRows * mColumns];
250 if (DEBUG) Log.v(TAG, String.format("New dimensions: %dx%d", mColumns, mRows));
254 setTranslationX(0.5f * (mWidth - mCellSize * mColumns) * SCALE);
258 for (int i=0; i<mColumns; i++) {
282 if (mCells[j*mColumns+i] != null) continue;
326 place(v, new Point(irand(0, mColumns), irand(0, mRows)), animate);
352 mCells[oc.y*mColumns + oc.x] = null;
357 if (!(i >= mColumns-3 || j >= mRows-3)) {
361 if (!(i >= mColumns-2 || j >= mRows-2)) {
365 if (!(i == mColumns-1 || j == mRows-1)) {
377 final View squatter = mCells[oc.y*mColumns + oc.x];
386 mCells[sq.y*mColumns + sq.x] = null;
411 mCells[oc.y*mColumns + oc.x] = v;