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;
255 Drawable drawable = a.getDrawable(R.styleable.ProgressBar_progressDrawable);
256 if (drawable != null) {
257 drawable = tileify(drawable, false);
260 setProgressDrawable(drawable);
287 drawable = a.getDrawable(R.styleable.ProgressBar_indeterminateDrawable);
288 if (drawable != null) {
289 drawable = tileifyIndeterminate(drawable);
290 setIndeterminateDrawable(drawable);
308 * Converts a drawable to a tiled version of itself. It will recursively
311 private Drawable tileify(Drawable drawable, boolean clip) {
313 if (drawable instanceof LayerDrawable) {
314 LayerDrawable background = (LayerDrawable) drawable;
332 } else if (drawable instanceof StateListDrawable) {
333 StateListDrawable in = (StateListDrawable) drawable;
341 } else if (drawable instanceof BitmapDrawable) {
342 final Bitmap tileBitmap = ((BitmapDrawable) drawable).getBitmap();
357 return drawable;
370 private Drawable tileifyIndeterminate(Drawable drawable) {
371 if (drawable instanceof AnimationDrawable) {
372 AnimationDrawable background = (AnimationDrawable) drawable;
383 drawable = newBg;
385 return drawable;
451 * <p>Get the drawable used to draw the progress bar in
454 * @return a {@link android.graphics.drawable.Drawable} instance
456 * @see #setIndeterminateDrawable(android.graphics.drawable.Drawable)
464 * <p>Define the drawable used to draw the progress bar in
467 * @param d the new drawable
484 * <p>Get the drawable used to draw the progress bar in
487 * @return a {@link android.graphics.drawable.Drawable} instance
489 * @see #setProgressDrawable(android.graphics.drawable.Drawable)
497 * <p>Define the drawable used to draw the progress bar in
500 * @param d the new drawable
539 * @return The drawable currently used to draw the progress bar