Searched refs:vwidth (Results 1 – 2 of 2) sorted by relevance
50 int vwidth = getWidth() - mPaddingLeft - mPaddingRight; in onDraw() local55 if (dwidth * vheight > vwidth * dheight) { in onDraw()57 dx = (vwidth - dwidth * scale) * 0.5f; in onDraw()59 scale = (float) vwidth / (float) dwidth; in onDraw()
1277 int vwidth = v.getWidth(); in setBackground() local1281 float scalex = (float) vwidth / bwidth; in setBackground()1286 Bitmap bg = Bitmap.createBitmap(vwidth, vheight, config); in setBackground()1302 matrix.postTranslate(vwidth/2, vheight/2); // Move bitmap center to view center in setBackground()