Home | History | Annotate | Download | only in drawable

Lines Matching defs:Placeholder

68     private Placeholder mPlaceholder;
92 // Placeholder and progress.
97 // Placeholder is not optional because backgroundColor is part of it.
98 Drawable placeholder = null;
101 if (mOpts.placeholder != null) {
102 ConstantState constantState = mOpts.placeholder.getConstantState();
104 placeholder = constantState.newDrawable(mResources);
106 placeholder = mOpts.placeholder;
109 Rect bounds = mOpts.placeholder.getBounds();
112 } else if (placeholder.getIntrinsicWidth() != -1) {
113 placeholderWidth = placeholder.getIntrinsicWidth();
117 } else if (placeholder.getIntrinsicHeight() != -1) {
118 placeholderHeight = placeholder.getIntrinsicHeight();
122 mPlaceholder = new Placeholder(placeholder, mResources, placeholderWidth, placeholderHeight,
157 * This sets the drawable to the failed state, which remove all animations from the placeholder.
265 * The reason for this is that we need the placeholder and progress bar to be drawn over our
294 * Overriding this method to add your own custom placeholder or progress drawing.
388 * Each attachment gets its own placeholder and progress indicator, to be shown, hidden,
441 Log.v(TAG, String.format("OUT stateful setLoadState. new=%s placeholder=%s progress=%s",
446 private static class Placeholder extends TileDrawable {
452 public Placeholder(Drawable placeholder, Resources res, int placeholderWidth,
454 super(placeholder, placeholderWidth, placeholderHeight, fadeOutDurationMs, opts);
650 * to and from the placeholder, progress bars, and decoded image.
659 * placeholder and/or the progress bar is showing and animating. We first show the
660 * pulsating placeholder when an image begins decoding. After 2 seconds, we fade in a
671 * placeholder could be accomplished by {@link BasicBitmapDrawable} without the added
676 * Set {@link #backgroundColor} to the color used for the background of the placeholder and
677 * progress bar. Use the alternative constructor to populate {@link #placeholder} and
748 public Drawable placeholder;
754 * animation (placeholder will be at maximum alpha always). Any value > 0 defines the
778 public ExtendedOptions(final int features, final Drawable placeholder,
781 this.placeholder = placeholder;
814 && placeholder == null) {
817 + "either backgroundColor or placeholder must be set.");