Searched refs:mTileSize (Results 1 – 1 of 1) sorted by relevance
/development/samples/Snake/src/com/example/android/snake/ |
D | TileView.java | 40 protected static int mTileSize; field in TileView 66 mTileSize = a.getDimensionPixelSize(R.styleable.TileView_tileSize, 12); in TileView() 75 mTileSize = a.getDimensionPixelSize(R.styleable.TileView_tileSize, 12); in TileView() 100 Bitmap bitmap = Bitmap.createBitmap(mTileSize, mTileSize, Bitmap.Config.ARGB_8888); in loadTile() 102 tile.setBounds(0, 0, mTileSize, mTileSize); in loadTile() 114 canvas.drawBitmap(mTileArray[mTileGrid[x][y]], mXOffset + x * mTileSize, in onDraw() 115 mYOffset + y * mTileSize, mPaint); in onDraw() 147 mXTileCount = (int) Math.floor(w / mTileSize); in onSizeChanged() 148 mYTileCount = (int) Math.floor(h / mTileSize); in onSizeChanged() 150 mXOffset = ((w - (mTileSize * mXTileCount)) / 2); in onSizeChanged() [all …]
|