Lines Matching refs:bounds
48 * Maintains and draws a drawable inside rounded rectangular bounds.
51 * bounds specified by {@link #setBounds(Rect)} and {@link #setRadius(int)} when the
166 * Sets whether the drawable inside should be clipped or resized to fit the rounded bounds. If
183 * Returns whether the drawable inside is clipped or resized to fit the rounded bounds.
192 protected void onBoundsChange(Rect bounds) {
193 mTmpBounds.right = bounds.width();
194 mTmpBounds.bottom = bounds.height();
195 mTmpBoundsF.right = bounds.width();
196 mTmpBoundsF.bottom = bounds.height();
202 Rect bounds = getBounds();
203 if (mDrawable == null || bounds.isEmpty()) {
207 canvas.translate(bounds.left, bounds.top);
208 // mTmpBoundsF is bounds translated to (0,0) and converted to RectF as drawRoundRect
221 int minEdge = Math.min(bounds.width(), bounds.height());
274 * this method should be called only if the drawable or the bounds has changed.
280 Rect bounds = getBounds();
281 if (!bounds.isEmpty()) {
282 Bitmap bitmap = drawableToBitmap(mDrawable, bounds.width(), bounds.height());