Lines Matching refs:getWidth
102 int x = (int) (canvas.getWidth() - textWidth - 2*mMargin);
104 x = (int) ((canvas.getWidth() - textWidth) / 2.0f);
181 mBitmapBounds = new Rect(mMargin/2, mMargin, getWidth() - mMargin/2,
185 mBitmapBounds = new Rect(mMargin/2, mMargin, getWidth()/2, getHeight());
187 mBitmapBounds = new Rect(mMargin/2, mMargin, getWidth() - mMargin/2, getHeight());
206 m.setRectToRect(new RectF(0, 0, mBitmap.getWidth(), mBitmap.getHeight()),
209 float scaleWidth = mBitmapBounds.width() / (float) mBitmap.getWidth();
212 float dx = (mBitmapBounds.width() - (mBitmap.getWidth() * scale)) / 2f;
234 startGradient = getWidth()/2;
236 canvas.drawRect(new RectF(startGradient, start, getWidth(), end), mPaint);