Lines Matching defs:drawable

28 import android.graphics.drawable.Animatable;
29 import android.graphics.drawable.AnimationDrawable;
30 import android.graphics.drawable.BitmapDrawable;
31 import android.graphics.drawable.ClipDrawable;
32 import android.graphics.drawable.Drawable;
33 import android.graphics.drawable.LayerDrawable;
34 import android.graphics.drawable.ShapeDrawable;
35 import android.graphics.drawable.StateListDrawable;
36 import android.graphics.drawable.shapes.RoundRectShape;
37 import android.graphics.drawable.shapes.Shape;
262 Drawable drawable = a.getDrawable(R.styleable.ProgressBar_progressDrawable);
263 if (drawable != null) {
264 drawable = tileify(drawable, false);
267 setProgressDrawable(drawable);
294 drawable = a.getDrawable(R.styleable.ProgressBar_indeterminateDrawable);
295 if (drawable != null) {
296 drawable = tileifyIndeterminate(drawable);
297 setIndeterminateDrawable(drawable);
312 * Converts a drawable to a tiled version of itself. It will recursively
315 private Drawable tileify(Drawable drawable, boolean clip) {
317 if (drawable instanceof LayerDrawable) {
318 LayerDrawable background = (LayerDrawable) drawable;
336 } else if (drawable instanceof StateListDrawable) {
337 StateListDrawable in = (StateListDrawable) drawable;
345 } else if (drawable instanceof BitmapDrawable) {
346 final Bitmap tileBitmap = ((BitmapDrawable) drawable).getBitmap();
361 return drawable;
374 private Drawable tileifyIndeterminate(Drawable drawable) {
375 if (drawable instanceof AnimationDrawable) {
376 AnimationDrawable background = (AnimationDrawable) drawable;
387 drawable = newBg;
389 return drawable;
455 * <p>Get the drawable used to draw the progress bar in
458 * @return a {@link android.graphics.drawable.Drawable} instance
460 * @see #setIndeterminateDrawable(android.graphics.drawable.Drawable)
468 * <p>Define the drawable used to draw the progress bar in
471 * @param d the new drawable
491 * <p>Get the drawable used to draw the progress bar in
494 * @return a {@link android.graphics.drawable.Drawable} instance
496 * @see #setProgressDrawable(android.graphics.drawable.Drawable)
504 * <p>Define the drawable used to draw the progress bar in
507 * @param d the new drawable
549 * @return The drawable currently used to draw the progress bar