Searched refs:drawableWidth (Results 1 – 4 of 4) sorted by relevance
45 final int drawableWidth = drawable.getIntrinsicWidth(); in fromDrawable() local47 final int insetHorizontal = drawableWidth < 0 || drawableWidth > sourceWidth ? in fromDrawable()48 0 : (sourceWidth - drawableWidth) / 2; in fromDrawable()
58 final int drawableWidth = getDrawable().getIntrinsicWidth(); in recomputeImageMatrix() local62 if (drawableWidth * viewHeight > drawableHeight * viewWidth) { in recomputeImageMatrix()65 scale = (float) viewWidth / drawableWidth; in recomputeImageMatrix()79 float dx = -((drawableWidth * scale) - viewWidth); in recomputeImageMatrix()
359 final int drawableWidth = Math.round(scaleFactor * nativeDrawableWidth); in onLayout() local363 final int drawableLeft = (viewWidth - drawableWidth) / 2 in onLayout()364 + Math.round(mImageHorizontalOffcenterPercentage * drawableWidth); in onLayout()367 mDrawable.setBounds(drawableLeft, drawableTop, drawableLeft + drawableWidth, in onLayout()
260 int drawableWidth = mDrawable.getIntrinsicWidth(); in getIconRect() local268 final int width = drawableWidth; in getIconRect()