Lines Matching refs:bounds
47 * Maintains and draws a drawable inside rounded rectangular bounds.
50 * bounds specified by {@link #setBounds(Rect)} and {@link #setRadius(int)} when the
164 * Sets whether the drawable inside should be clipped or resized to fit the rounded bounds. If
181 * Returns whether the drawable inside is clipped or resized to fit the rounded bounds.
190 protected void onBoundsChange(Rect bounds) {
191 mTmpBounds.right = bounds.width();
192 mTmpBounds.bottom = bounds.height();
193 mTmpBoundsF.right = bounds.width();
194 mTmpBoundsF.bottom = bounds.height();
200 Rect bounds = getBounds();
201 if (mDrawable == null || bounds.isEmpty()) {
205 canvas.translate(bounds.left, bounds.top);
206 // mTmpBoundsF is bounds translated to (0,0) and converted to RectF as drawRoundRect
219 int minEdge = Math.min(bounds.width(), bounds.height());
272 * this method should be called only if the drawable or the bounds has changed.
278 Rect bounds = getBounds();
279 if (!bounds.isEmpty()) {
280 Bitmap bitmap = drawableToBitmap(mDrawable, bounds.width(), bounds.height());