fresco icon indicating copy to clipboard operation
fresco copied to clipboard

Add param placeholderBackground

Open ppamorim opened this issue 11 years ago • 1 comments

We need to implement a background color for translucid placeholder. I need this because my placeholder can't be cropped and this makes everything more simple to change (like a color). This needs to be affected by borders too.

Can be:

fresco:placeholderBackground="resource|color|drawable"

ppamorim avatar Jul 03 '15 13:07 ppamorim

You can achieve that by setting the placeholder programmatically. See Using Drawees in Code.

Drawable[] layers = new Drawable[] {placeholderBackground, placeholder};
hierarchy.setPlaceholderImage(new ArrayDrawable(layers));

plamenko avatar Jul 06 '15 20:07 plamenko