fresco
fresco copied to clipboard
Add param placeholderBackground
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"
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));